/*
 * This is a RANDOMLY GENERATED PROGRAM.
 *
 * Generator: csmith 2.4.0
 * Git version: 8b4af0a
 * Options:   --bitfields --packed-struct --output test35678.c
 * Seed:      9563059183747292965
 */

#include "csmith.h"


static long __undefined;

/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
static int32_t g_2 = 0L;
static volatile int32_t g_19 = 0xC1D6B3BFL;/* VOLATILE GLOBAL g_19 */
static volatile int32_t *g_18 = &g_19;
static volatile int32_t **g_17 = &g_18;
static int32_t g_32[3][1][2] = {{{0x284868FDL,0xDBC9B780L}},{{0xDBC9B780L,0x284868FDL}},{{0xDBC9B780L,0xDBC9B780L}}};
static int32_t *g_72 = &g_2;
static int32_t **g_71 = &g_72;
static int16_t g_95 = 0L;
static int32_t * volatile * volatile g_121 = &g_72;/* VOLATILE GLOBAL g_121 */
static int32_t * volatile * volatile *g_120[2] = {&g_121,&g_121};
static volatile int32_t g_122 = (-4L);/* VOLATILE GLOBAL g_122 */
static int32_t g_123 = 0L;
static uint16_t g_138[6] = {0x062DL,0x062DL,0x062DL,0x062DL,0x062DL,0x062DL};
static uint32_t g_172 = 0UL;
static int32_t ***g_199 = &g_71;
static int32_t ****g_198[4][5] = {{&g_199,(void*)0,(void*)0,&g_199,&g_199},{&g_199,&g_199,&g_199,&g_199,&g_199},{&g_199,(void*)0,&g_199,&g_199,&g_199},{(void*)0,&g_199,(void*)0,&g_199,&g_199}};
static int16_t g_204 = 0xE609L;
static int64_t g_242 = 1L;
static uint8_t g_243[2][7][3] = {{{0x36L,0x30L,247UL},{252UL,0x5CL,252UL},{0x36L,247UL,0xE4L},{0xDBL,0x5CL,0x69L},{0x30L,0x30L,0xE4L},{252UL,255UL,252UL},{0x30L,247UL,247UL}},{{0xDBL,255UL,0x69L},{0x36L,0x30L,247UL},{252UL,0x5CL,252UL},{0x36L,247UL,0xE4L},{0xDBL,0x5CL,0x69L},{0x30L,0x30L,0xE4L},{252UL,255UL,252UL}}};
static uint32_t g_246[2] = {4UL,4UL};
static uint32_t g_247 = 0xFEFCE86AL;
static uint16_t g_276 = 0UL;
static int64_t g_302[4][5][2] = {{{(-4L),(-4L)},{0x28533DBDFC090A7FLL,0x129888E990F694BELL},{0x28533DBDFC090A7FLL,(-4L)},{(-4L),0x129888E990F694BELL},{(-4L),(-4L)}},{{0x28533DBDFC090A7FLL,0x129888E990F694BELL},{0x28533DBDFC090A7FLL,(-4L)},{(-4L),0x129888E990F694BELL},{(-4L),(-4L)},{0x28533DBDFC090A7FLL,0x129888E990F694BELL}},{{0x28533DBDFC090A7FLL,(-4L)},{(-4L),0x129888E990F694BELL},{(-4L),(-4L)},{0x28533DBDFC090A7FLL,0x129888E990F694BELL},{0x28533DBDFC090A7FLL,(-4L)}},{{(-4L),0x129888E990F694BELL},{(-4L),(-4L)},{0x28533DBDFC090A7FLL,0x129888E990F694BELL},{0x28533DBDFC090A7FLL,(-4L)},{(-4L),0x129888E990F694BELL}}};
static int32_t g_318 = 1L;
static int32_t *g_343 = &g_2;
static int32_t ** volatile g_342 = &g_343;/* VOLATILE GLOBAL g_342 */
static uint16_t g_406 = 65535UL;
static uint64_t g_408[5][6][8] = {{{18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL},{5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL},{18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL},{18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL},{5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL},{18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL}},{{18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL},{5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL},{18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL},{18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL},{5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL},{18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL}},{{18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL,18446744073709551607UL},{5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL},{18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,18446744073709551607UL},{5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL},{18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL},{5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL}},{{5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL},{18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL},{5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL},{5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL},{18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL},{5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL}},{{5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL},{18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL},{5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL},{5UL,5UL,18446744073709551607UL,5UL,5UL,18446744073709551607UL,5UL,5UL},{18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL},{5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL,18446744073709551607UL,5UL,18446744073709551607UL}}};
static int32_t * const *g_443 = (void*)0;
static uint16_t * volatile g_449 = (void*)0;/* VOLATILE GLOBAL g_449 */
static uint16_t * volatile *g_448 = &g_449;
static uint16_t * volatile **g_447 = &g_448;
static int8_t g_509 = (-3L);
static const int32_t * const g_550 = &g_123;
static const int32_t * const  volatile * volatile g_549[4] = {&g_550,&g_550,&g_550,&g_550};
static const int32_t * const  volatile * volatile *g_548[8] = {&g_549[0],&g_549[0],&g_549[0],&g_549[0],&g_549[0],&g_549[0],&g_549[0],&g_549[0]};
static const int32_t * const  volatile * volatile **g_547[4][9] = {{&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3]},{&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3]},{&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3]},{&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3],&g_548[3]}};
static const int32_t * const  volatile * volatile ** volatile * volatile g_546 = &g_547[2][0];/* VOLATILE GLOBAL g_546 */
static uint64_t g_579 = 0x3AC6DAA03074FA1BLL;
static const int16_t g_581 = 0xE123L;
static int32_t ** volatile g_626[1] = {&g_343};
static int32_t ** volatile g_627 = &g_343;/* VOLATILE GLOBAL g_627 */
static volatile uint64_t g_723 = 18446744073709551615UL;/* VOLATILE GLOBAL g_723 */
static volatile uint64_t *g_722 = &g_723;
static volatile uint64_t ** volatile g_721 = &g_722;/* VOLATILE GLOBAL g_721 */
static uint16_t *g_765 = &g_276;
static uint16_t **g_764[6][5][6] = {{{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0}},{{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0}},{{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0}},{{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0}},{{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0}},{{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0},{&g_765,(void*)0,&g_765,(void*)0,&g_765,(void*)0}}};
static uint16_t ***g_763 = &g_764[1][3][1];
static uint8_t g_791 = 255UL;
static int32_t g_793[1][10] = {{0xE78D78AEL,0xE78D78AEL,0xE78D78AEL,0xE78D78AEL,0xE78D78AEL,0xE78D78AEL,0xE78D78AEL,0xE78D78AEL,0xE78D78AEL,0xE78D78AEL}};
static int32_t *g_792[4][5][10] = {{{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,&g_793[0][0],&g_793[0][3],&g_793[0][3],&g_793[0][3],&g_793[0][0]},{&g_793[0][3],&g_793[0][2],(void*)0,&g_793[0][2],&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][3],(void*)0},{&g_793[0][3],(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,&g_793[0][0],&g_793[0][3],&g_793[0][3],&g_793[0][3]},{&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][2],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][0],&g_793[0][3],&g_793[0][3]},{&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][0]}},{{(void*)0,&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][0],(void*)0,&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3]},{&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][0],&g_793[0][3],&g_793[0][3],&g_793[0][0],&g_793[0][3],(void*)0,&g_793[0][3]},{(void*)0,(void*)0,(void*)0,&g_793[0][0],&g_793[0][3],&g_793[0][3],&g_793[0][3],&g_793[0][0],(void*)0,(void*)0},{&g_793[0][3],&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][2],&g_793[0][2],&g_793[0][3],(void*)0,&g_793[0][3]},{&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][3],&g_793[0][2],(void*)0,&g_793[0][2],&g_793[0][3],&g_793[0][3]}},{{&g_793[0][3],&g_793[0][3],&g_793[0][3],&g_793[0][2],&g_793[0][0],&g_793[0][3],(void*)0,(void*)0,&g_793[0][3],&g_793[0][0]},{(void*)0,&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][3],&g_793[0][2],(void*)0,&g_793[0][2],&g_793[0][3]},{&g_793[0][3],&g_793[0][3],&g_793[0][3],&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][2],&g_793[0][2],&g_793[0][3]},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,&g_793[0][0],&g_793[0][3],&g_793[0][3],&g_793[0][3]},{&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][2],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][0],&g_793[0][3],&g_793[0][3]}},{{&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][0]},{(void*)0,&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][0],(void*)0,&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3]},{&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][0],&g_793[0][3],&g_793[0][3],&g_793[0][0],&g_793[0][3],(void*)0,&g_793[0][3]},{(void*)0,(void*)0,(void*)0,&g_793[0][0],&g_793[0][3],&g_793[0][3],&g_793[0][3],&g_793[0][0],(void*)0,(void*)0},{&g_793[0][3],&g_793[0][3],&g_793[0][3],(void*)0,&g_793[0][3],&g_793[0][2],&g_793[0][2],&g_793[0][3],(void*)0,&g_793[0][3]}}};
static uint8_t g_796 = 1UL;
static uint32_t *g_832 = (void*)0;
static uint32_t **g_831 = &g_832;
static uint32_t ***g_830 = &g_831;
static uint32_t ****g_829 = &g_830;
static volatile uint32_t g_861 = 0x8E5EDFDFL;/* VOLATILE GLOBAL g_861 */
static uint16_t ****g_867[4] = {(void*)0,(void*)0,(void*)0,(void*)0};
static int16_t g_922 = 1L;
static const int8_t g_954 = 1L;
static uint32_t g_960 = 4294967295UL;
static const int32_t * const *g_1064 = (void*)0;
static const int32_t * const **g_1063[1][8][4] = {{{&g_1064,&g_1064,&g_1064,&g_1064},{&g_1064,&g_1064,&g_1064,&g_1064},{&g_1064,&g_1064,&g_1064,&g_1064},{&g_1064,&g_1064,&g_1064,&g_1064},{&g_1064,&g_1064,&g_1064,&g_1064},{&g_1064,&g_1064,&g_1064,&g_1064},{&g_1064,&g_1064,&g_1064,&g_1064},{&g_1064,&g_1064,&g_1064,&g_1064}}};
static uint16_t g_1085[6] = {0xD4F9L,0xD4F9L,0xD4F9L,0xD4F9L,0xD4F9L,0xD4F9L};
static uint16_t * const g_1084 = &g_1085[1];
static uint16_t * const *g_1083 = &g_1084;
static uint16_t * const **g_1082 = &g_1083;
static uint16_t * const ***g_1081 = &g_1082;
static uint16_t * const ****g_1080 = &g_1081;
static uint16_t *****g_1103 = (void*)0;
static volatile int8_t *g_1259 = (void*)0;
static volatile int8_t **g_1258 = &g_1259;
static volatile uint8_t * volatile * volatile *g_1269 = (void*)0;
static uint64_t g_1301 = 0xA98CA36247713931LL;
static uint8_t g_1336 = 0UL;
static volatile int32_t g_1355 = 8L;/* VOLATILE GLOBAL g_1355 */
static int32_t g_1372[7] = {0L,0L,0L,0L,0L,0L,0L};
static int8_t g_1373 = 0xF6L;
static int8_t *g_1405 = (void*)0;
static int16_t g_1448 = 0x2E9FL;
static const int32_t *g_1489 = (void*)0;
static volatile uint16_t g_1512 = 1UL;/* VOLATILE GLOBAL g_1512 */
static volatile uint32_t g_1603 = 1UL;/* VOLATILE GLOBAL g_1603 */
static volatile uint32_t * const g_1602 = &g_1603;
static volatile uint32_t * const *g_1601 = &g_1602;
static int32_t g_1674 = 1L;
static volatile uint32_t g_1767 = 8UL;/* VOLATILE GLOBAL g_1767 */
static volatile uint8_t g_1874 = 255UL;/* VOLATILE GLOBAL g_1874 */
static volatile uint8_t *g_1873 = &g_1874;
static volatile uint8_t **g_1872 = &g_1873;
static const uint8_t g_1919 = 255UL;
static uint32_t g_1922[9] = {0x91517CB6L,0x91517CB6L,0x91517CB6L,0x91517CB6L,0x91517CB6L,0x91517CB6L,0x91517CB6L,0x91517CB6L,0x91517CB6L};
static uint8_t g_1954 = 0UL;
static uint32_t g_1981 = 4294967295UL;
static int64_t g_1999 = 0xF258F850B02F90D1LL;
static uint32_t ****g_2024 = &g_830;
static volatile uint8_t **** const  volatile g_2073 = (void*)0;/* VOLATILE GLOBAL g_2073 */
static volatile uint8_t ***g_2074 = &g_1872;
static uint64_t g_2096 = 0x0D417CF3DD58939FLL;
static int32_t *** const g_2107 = (void*)0;
static int32_t *** const *g_2106 = &g_2107;
static int32_t *** const **g_2105 = &g_2106;
static volatile int64_t g_2200 = (-6L);/* VOLATILE GLOBAL g_2200 */
static volatile uint8_t **** const  volatile g_2268 = &g_2074;/* VOLATILE GLOBAL g_2268 */
static volatile uint8_t **** const  volatile *g_2267 = &g_2268;
static uint16_t **g_2359 = &g_765;
static int64_t g_2371 = 0x24A368C1170D4C16LL;
static uint64_t **g_2436 = (void*)0;
static uint8_t g_2461 = 255UL;
static volatile int32_t g_2525 = 1L;/* VOLATILE GLOBAL g_2525 */
static uint8_t *****g_2666 = (void*)0;
static uint32_t *****g_2696 = &g_2024;
static const uint8_t *g_2730 = (void*)0;
static const uint8_t **g_2729 = &g_2730;
static const uint8_t ***g_2728[6] = {&g_2729,&g_2729,&g_2729,&g_2729,&g_2729,&g_2729};
static const uint8_t ****g_2727[2][5][2] = {{{&g_2728[5],&g_2728[2]},{&g_2728[5],&g_2728[2]},{&g_2728[5],&g_2728[2]},{&g_2728[5],&g_2728[2]},{&g_2728[5],&g_2728[2]}},{{&g_2728[5],&g_2728[2]},{&g_2728[5],&g_2728[2]},{&g_2728[5],&g_2728[2]},{&g_2728[5],&g_2728[2]},{&g_2728[5],&g_2728[2]}}};
static const uint8_t *****g_2726[7][2] = {{&g_2727[0][3][0],&g_2727[0][3][0]},{&g_2727[0][3][0],&g_2727[0][3][0]},{&g_2727[0][3][0],&g_2727[0][3][0]},{&g_2727[0][3][0],&g_2727[0][3][0]},{&g_2727[0][3][0],&g_2727[0][3][0]},{&g_2727[0][3][0],&g_2727[0][3][0]},{&g_2727[0][3][0],&g_2727[0][3][0]}};
static uint32_t *g_2808 = &g_960;
static uint32_t **g_2807 = &g_2808;
static int64_t *g_2827[1] = {&g_302[0][4][1]};
static int64_t **g_2826[3] = {&g_2827[0],&g_2827[0],&g_2827[0]};
static volatile int8_t g_2845 = 0x33L;/* VOLATILE GLOBAL g_2845 */
static int32_t *****g_3100 = &g_198[2][4];
static uint32_t g_3151 = 0xA6FAB20CL;
static const int32_t g_3190 = 0x4CF974D6L;
static uint32_t ** const *g_3194 = (void*)0;
static uint32_t ** const **g_3193 = &g_3194;
static volatile int16_t g_3217 = 0x3FCCL;/* VOLATILE GLOBAL g_3217 */
static volatile int16_t *g_3216 = &g_3217;
static volatile int16_t ** volatile g_3215 = &g_3216;/* VOLATILE GLOBAL g_3215 */
static const uint32_t g_3295 = 4294967293UL;
static const uint32_t g_3331 = 0x5214BF31L;
static int32_t **** const *g_3340[10][9] = {{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0}};
static int32_t ***g_3597 = (void*)0;
static int32_t *** volatile * volatile g_3596 = &g_3597;/* VOLATILE GLOBAL g_3596 */
static int32_t *** volatile * volatile * volatile g_3598[4][1][10] = {{{&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0}},{{&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0}},{{&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0}},{{&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0,&g_3596,(void*)0}}};
static int32_t *** volatile * volatile * volatile g_3599 = &g_3596;/* VOLATILE GLOBAL g_3599 */
static const int32_t **g_3605[4] = {&g_1489,&g_1489,&g_1489,&g_1489};
static const int32_t ***g_3604 = &g_3605[0];
static const int32_t ** volatile g_3614 = &g_1489;/* VOLATILE GLOBAL g_3614 */
static volatile int64_t ** volatile g_3623 = (void*)0;/* VOLATILE GLOBAL g_3623 */
static volatile int64_t ** volatile *g_3622 = &g_3623;
static volatile int64_t ** volatile **g_3621 = &g_3622;
static uint32_t ** const ***g_3722[6][7][6] = {{{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193}},{{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193}},{{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193}},{{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193}},{{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193}},{{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193},{&g_3193,&g_3193,&g_3193,&g_3193,&g_3193,&g_3193}}};
static volatile int32_t g_3826 = (-5L);/* VOLATILE GLOBAL g_3826 */
static const uint8_t **** volatile g_3845 = (void*)0;/* VOLATILE GLOBAL g_3845 */
static const uint8_t ***g_3847 = &g_2729;
static int32_t *** volatile * volatile *g_3870 = (void*)0;
static int16_t *g_3880 = &g_204;
static int16_t **g_3879 = &g_3880;
static const int64_t g_3891[8][7] = {{1L,0xEB3674F483357EFDLL,0xEB3674F483357EFDLL,1L,2L,1L,0L},{1L,(-1L),0x2C6F2A109CAFDBC8LL,(-5L),0x3CDFFAEF7F05C2C8LL,(-6L),0L},{0x3D13EFB271CD3BAALL,2L,0L,0L,0x3004BD672E2E81DFLL,0L,0L},{0x3004BD672E2E81DFLL,0x3004BD672E2E81DFLL,0xBC4B9AF41046745BLL,0x0D068495A0096B1FLL,(-6L),0L,0L},{(-1L),0xBC4B9AF41046745BLL,0L,0xEB3674F483357EFDLL,0x3D13EFB271CD3BAALL,(-6L),(-1L)},{0L,1L,(-6L),0L,(-6L),1L,0L},{0x3CDFFAEF7F05C2C8LL,0L,1L,0L,0x3004BD672E2E81DFLL,(-1L),0xEB3674F483357EFDLL},{0L,0x2C6F2A109CAFDBC8LL,2L,0xEB3674F483357EFDLL,0x3CDFFAEF7F05C2C8LL,0x3D13EFB271CD3BAALL,0x3D13EFB271CD3BAALL}};
static volatile uint64_t g_3901 = 0xCC76C2B8C6A86CCALL;/* VOLATILE GLOBAL g_3901 */
static int16_t g_3911 = 0x1360L;
static uint32_t *g_3924 = &g_172;
static volatile int32_t * volatile *g_3966 = &g_18;
static uint64_t ***g_3999 = &g_2436;


/* --- FORWARD DECLARATIONS --- */
static const uint64_t  func_1(void);
static uint8_t  func_8(const uint16_t  p_9, uint16_t  p_10, int32_t  p_11);
static int32_t * func_21(const int8_t  p_22, int16_t  p_23, const int16_t  p_24, const int32_t *** p_25, int64_t  p_26);
static int32_t  func_37(int32_t  p_38, int64_t  p_39, uint32_t  p_40);
static const int8_t  func_45(uint8_t  p_46, uint32_t  p_47);
static int32_t ** func_55(int32_t * const  p_56, int32_t *** p_57, const uint8_t  p_58, int32_t * const  p_59, uint16_t  p_60);
static int32_t * func_68(int32_t ** p_69, int32_t  p_70);
static int8_t  func_77(int32_t *** p_78);
static uint64_t  func_103(int32_t * p_104, int32_t  p_105, uint32_t  p_106, const int64_t  p_107);
static int32_t * func_108(int32_t ** p_109, int32_t * p_110, uint8_t  p_111);


/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/* 
 * reads : g_2 g_343 g_3966 g_18 g_19 g_3879 g_3880 g_204 g_1512 g_2807 g_2808 g_722 g_723
 * writes: g_2 g_19 g_960
 */
static const uint64_t  func_1(void)
{ /* block id: 0 */
    int64_t l_7 = 0x0EDCAD2086BD085CLL;
    int32_t *l_3626 = (void*)0;
    uint16_t ****l_3627 = &g_763;
    uint32_t l_3660 = 18446744073709551610UL;
    int32_t l_3726 = 0x187F8F7DL;
    int32_t l_3727 = (-1L);
    int32_t l_3728 = 0L;
    int64_t l_3729 = (-1L);
    uint8_t l_3730[9];
    int8_t * const *l_3738 = &g_1405;
    int8_t * const **l_3737 = &l_3738;
    int32_t **l_3749 = &g_343;
    uint32_t l_3788 = 1UL;
    uint32_t **** const l_3802 = (void*)0;
    uint32_t l_3824 = 0UL;
    uint16_t l_3825 = 0x0290L;
    int8_t l_3827 = 1L;
    int64_t ***l_3841[5];
    uint32_t *l_3926 = &l_3788;
    int32_t **l_3942 = &g_343;
    int32_t l_4022 = 0x4801AEC1L;
    uint16_t l_4023 = 0x6CAEL;
    uint16_t l_4025[6][1] = {{0x64D0L},{0xF461L},{0xF461L},{0x64D0L},{0xF461L},{0xF461L}};
    const uint8_t l_4054 = 0x86L;
    uint8_t l_4082[4][5] = {{255UL,0x29L,0x29L,255UL,0UL},{3UL,0x79L,0x79L,3UL,0xEDL},{255UL,0x29L,0x29L,255UL,0UL},{3UL,0x79L,0x79L,3UL,0xEDL}};
    int64_t l_4095 = 3L;
    uint32_t **l_4104 = &g_2808;
    const uint32_t l_4105 = 0x53DC9AA6L;
    uint8_t l_4106[7][10][3] = {{{0x8CL,0xC4L,0xA8L},{1UL,0xF3L,0x40L},{251UL,0xC4L,251UL},{0x63L,1UL,255UL},{251UL,0UL,252UL},{0x95L,0xF3L,255UL},{255UL,0UL,0x8CL},{0x95L,0x95L,255UL},{251UL,0x1FL,0xA8L},{0xF3L,0x95L,0xF3L}},{{252UL,0UL,0UL},{0x63L,0xF3L,0xF3L},{0UL,8UL,0xA8L},{0x40L,0x63L,255UL},{0UL,0UL,0x8CL},{0x63L,0x40L,255UL},{252UL,0UL,252UL},{0xF3L,0x63L,0x95L},{251UL,8UL,252UL},{0x95L,0xF3L,255UL}},{{255UL,0UL,0x8CL},{0x95L,0x95L,255UL},{251UL,0x1FL,0xA8L},{0xF3L,0x95L,0xF3L},{252UL,0UL,0UL},{0x63L,0xF3L,0xF3L},{0UL,8UL,0xA8L},{0x40L,0x63L,255UL},{0UL,0UL,0x8CL},{0x63L,0x40L,255UL}},{{252UL,0UL,252UL},{0xF3L,0x63L,0x95L},{251UL,8UL,252UL},{0x95L,0xF3L,255UL},{255UL,0UL,0x8CL},{0x95L,0x95L,255UL},{251UL,0x1FL,0xA8L},{0xF3L,0x95L,0xF3L},{252UL,0UL,0UL},{0x63L,0xF3L,0xF3L}},{{0UL,8UL,0xA8L},{0x40L,0x63L,255UL},{0UL,0UL,0x8CL},{0x63L,0x40L,255UL},{252UL,0UL,252UL},{0xF3L,0x63L,0x95L},{251UL,8UL,252UL},{0x95L,0xF3L,255UL},{255UL,0UL,0x8CL},{0x95L,0x95L,255UL}},{{251UL,0x1FL,0xA8L},{0xF3L,0x95L,0xF3L},{252UL,0UL,0UL},{0x63L,0xF3L,0xF3L},{0UL,8UL,0xA8L},{0x40L,0x63L,255UL},{0UL,0UL,0x8CL},{0x63L,0x40L,255UL},{252UL,0UL,252UL},{0xF3L,0x63L,0x95L}},{{251UL,8UL,252UL},{0x95L,0xF3L,255UL},{255UL,0UL,0x8CL},{0x95L,0x95L,255UL},{251UL,0x1FL,0xA8L},{0xF3L,0x95L,0xF3L},{252UL,0UL,0UL},{0x63L,0xF3L,0xF3L},{0UL,0x1FL,0x8CL},{255UL,0xF3L,0x95L}}};
    int i, j, k;
    for (i = 0; i < 9; i++)
        l_3730[i] = 255UL;
    for (i = 0; i < 5; i++)
        l_3841[i] = &g_2826[1];
    for (g_2 = 8; (g_2 < 6); g_2--)
    { /* block id: 3 */
        uint16_t l_14 = 0xB72BL;
        uint64_t *l_3620 = &g_408[3][2][2];
        volatile int64_t ** volatile **l_3625 = &g_3622;
        uint16_t ****l_3628[8] = {&g_763,&g_763,&g_763,&g_763,&g_763,&g_763,&g_763,&g_763};
        uint32_t ****l_3636 = &g_830;
        const int64_t l_3662 = (-9L);
        uint8_t l_3666 = 255UL;
        int32_t l_3679[10] = {0L,0L,0L,0L,0L,0L,0L,0L,0L,0L};
        int32_t ***l_3704[7][10] = {{(void*)0,&g_71,&g_71,&g_71,(void*)0,&g_71,&g_71,&g_71,&g_71,&g_71},{&g_71,&g_71,&g_71,(void*)0,&g_71,&g_71,&g_71,&g_71,&g_71,&g_71},{&g_71,&g_71,&g_71,(void*)0,&g_71,&g_71,&g_71,&g_71,&g_71,&g_71},{&g_71,&g_71,&g_71,&g_71,&g_71,&g_71,&g_71,&g_71,&g_71,&g_71},{&g_71,&g_71,&g_71,&g_71,(void*)0,(void*)0,&g_71,&g_71,&g_71,(void*)0},{&g_71,&g_71,&g_71,&g_71,&g_71,&g_71,(void*)0,(void*)0,&g_71,&g_71},{&g_71,(void*)0,(void*)0,&g_71,&g_71,&g_71,&g_71,&g_71,&g_71,&g_71}};
        int32_t ***l_3712[2][5] = {{&g_71,&g_71,&g_71,&g_71,&g_71},{&g_71,&g_71,&g_71,&g_71,&g_71}};
        int8_t **l_3772 = &g_1405;
        uint32_t l_3776 = 0x2BF1B6BCL;
        uint8_t l_3872 = 253UL;
        int32_t l_3893 = (-9L);
        uint8_t l_3991 = 3UL;
        uint64_t l_4000[2][9][8] = {{{0x320A1BD692433167LL,18446744073709551613UL,0xA6738F08032D9385LL,1UL,0UL,1UL,0xA6738F08032D9385LL,18446744073709551613UL},{18446744073709551614UL,18446744073709551613UL,0x38ED80A0B1458F0ALL,0xA6738F08032D9385LL,18446744073709551613UL,0xFA633D78DDFE78A7LL,0xDD99E449F5DE28A7LL,0xDD99E449F5DE28A7LL},{0x38ED80A0B1458F0ALL,18446744073709551614UL,0x27D609C90F531B86LL,0x27D609C90F531B86LL,18446744073709551614UL,0x38ED80A0B1458F0ALL,0xDD99E449F5DE28A7LL,0UL},{0x747CC639C89731B2LL,0x27D609C90F531B86LL,0x38ED80A0B1458F0ALL,0xFA633D78DDFE78A7LL,0xA6738F08032D9385LL,0x320A1BD692433167LL,0xA6738F08032D9385LL,0xFA633D78DDFE78A7LL},{0xA6738F08032D9385LL,0x320A1BD692433167LL,0xA6738F08032D9385LL,0xFA633D78DDFE78A7LL,0x38ED80A0B1458F0ALL,0x27D609C90F531B86LL,0x747CC639C89731B2LL,0UL},{0xDD99E449F5DE28A7LL,0x38ED80A0B1458F0ALL,18446744073709551614UL,0x27D609C90F531B86LL,0x27D609C90F531B86LL,18446744073709551614UL,0x38ED80A0B1458F0ALL,0xDD99E449F5DE28A7LL},{0xDD99E449F5DE28A7LL,0xFA633D78DDFE78A7LL,18446744073709551613UL,0xA6738F08032D9385LL,0x38ED80A0B1458F0ALL,18446744073709551613UL,18446744073709551614UL,18446744073709551613UL},{0xA6738F08032D9385LL,1UL,0UL,1UL,0xA6738F08032D9385LL,18446744073709551613UL,0x320A1BD692433167LL,0x38ED80A0B1458F0ALL},{0x747CC639C89731B2LL,0xFA633D78DDFE78A7LL,1UL,18446744073709551613UL,18446744073709551614UL,18446744073709551614UL,18446744073709551613UL,1UL}},{{0x38ED80A0B1458F0ALL,0x38ED80A0B1458F0ALL,1UL,0xDD99E449F5DE28A7LL,18446744073709551613UL,0x27D609C90F531B86LL,0x320A1BD692433167LL,0x747CC639C89731B2LL},{18446744073709551614UL,0x320A1BD692433167LL,0UL,0x38ED80A0B1458F0ALL,0UL,0x320A1BD692433167LL,18446744073709551614UL,0xA6738F08032D9385LL},{0xDD99E449F5DE28A7LL,18446744073709551614UL,0UL,0xFA633D78DDFE78A7LL,0x320A1BD692433167LL,1UL,1UL,0x320A1BD692433167LL},{0x38ED80A0B1458F0ALL,18446744073709551613UL,18446744073709551613UL,0x38ED80A0B1458F0ALL,0x320A1BD692433167LL,18446744073709551613UL,0xA6738F08032D9385LL,1UL},{0xDD99E449F5DE28A7LL,18446744073709551613UL,0x27D609C90F531B86LL,0x320A1BD692433167LL,0x747CC639C89731B2LL,0x320A1BD692433167LL,0x27D609C90F531B86LL,18446744073709551613UL},{18446744073709551613UL,18446744073709551613UL,1UL,0x27D609C90F531B86LL,0UL,18446744073709551613UL,0xFA633D78DDFE78A7LL,0xFA633D78DDFE78A7LL},{1UL,18446744073709551613UL,18446744073709551614UL,18446744073709551614UL,18446744073709551613UL,1UL,0xFA633D78DDFE78A7LL,0x747CC639C89731B2LL},{0xA6738F08032D9385LL,18446744073709551614UL,1UL,18446744073709551613UL,0x27D609C90F531B86LL,0xDD99E449F5DE28A7LL,0x27D609C90F531B86LL,18446744073709551613UL},{0x27D609C90F531B86LL,0xDD99E449F5DE28A7LL,0x27D609C90F531B86LL,18446744073709551613UL,1UL,18446744073709551614UL,0xA6738F08032D9385LL,0x747CC639C89731B2LL}}};
        uint32_t *l_4012 = &l_3824;
        uint32_t l_4026 = 0x7D984436L;
        int32_t l_4033 = 7L;
        const uint32_t *l_4045 = &g_3331;
        const uint32_t **l_4044[3];
        int i, j, k;
        for (i = 0; i < 3; i++)
            l_4044[i] = &l_4045;
    }
    (**g_3966) |= (**l_3942);
    (*g_18) = ((((**l_3749) = (65533UL || 0xC9B4L)) && ((**l_3749) && ((**g_2807) = (safe_lshift_func_int8_t_s_s((-1L), (((((safe_add_func_int8_t_s_s(((safe_div_func_uint16_t_u_u(((((safe_div_func_uint8_t_u_u(0UL, (((((*g_343) = ((void*)0 != l_3749)) , l_4104) == &g_1602) ^ (**g_3879)))) != l_3727) | l_4105) , 4UL), l_4106[0][2][1])) ^ g_1512), 0L)) <= 0x714C4827L) > (-2L)) & 1L) , (**l_3749))))))) , 0x8DBACC98L);
    return (*g_722);
}


/* ------------------------------------------ */
/* 
 * reads : g_17 g_18 g_19 g_32 g_2 g_71 g_318 g_72 g_408 g_1602 g_1603 g_243 g_1081 g_1082 g_1083 g_1084 g_1085 g_1373 g_2371 g_1372 g_796 g_2267 g_2268 g_2074 g_1872 g_1873 g_1874 g_765 g_276 g_2808 g_793 g_2359 g_2807 g_960 g_579 g_204 g_721 g_722 g_723 g_2729 g_2730 g_1922 g_95 g_509 g_550 g_123 g_199 g_138 g_447 g_448 g_764 g_2461 g_3604 g_406 g_3614 g_342
 * writes: g_17 g_32 g_19 g_408 g_2371 g_1085 g_72 g_246 g_2096 g_960 g_318 g_302 g_579 g_922 g_509 g_204 g_2807 g_95 g_791 g_18 g_120 g_123 g_138 g_2461 g_247 g_406 g_1489 g_343
 */
static uint8_t  func_8(const uint16_t  p_9, uint16_t  p_10, int32_t  p_11)
{ /* block id: 4 */
    int32_t *l_16 = (void*)0;
    int32_t **l_15 = &l_16;
    volatile int32_t ***l_20 = &g_17;
    int32_t *l_31 = &g_32[2][0][1];
    int32_t ***l_64 = &l_15;
    int32_t **l_66 = &l_31;
    int32_t ***l_65 = &l_66;
    int32_t **l_67 = &l_31;
    const int32_t l_2880 = 0L;
    uint32_t *l_2881 = &g_246[1];
    uint32_t l_2882 = 0xADFB97B8L;
    uint16_t l_3606 = 0x980CL;
    (*l_15) = (void*)0;
    (*l_20) = g_17;
    (*g_342) = func_21(((safe_mod_func_uint8_t_u_u((safe_mul_func_int64_t_s_s((&g_18 != ((((*l_31) = p_11) || ((safe_rshift_func_uint64_t_u_s((((safe_lshift_func_uint16_t_u_u((***l_20), 10)) == p_11) , (func_37(((g_19 , ((*l_2881) = (safe_add_func_uint32_t_u_u((safe_mod_func_uint16_t_u_u((((p_11 < ((***l_20) , (func_45(((((((safe_mul_func_int32_t_s_s((safe_rshift_func_int16_t_s_s(0x435CL, 2)), (~((((safe_lshift_func_int64_t_s_s((((*l_65) = ((*l_64) = func_55((*l_15), &l_15, g_19, &g_2, p_10))) != l_67), 26)) , g_32[2][0][1]) , 0x2F236BBBL) <= p_11)))) | p_11) & g_2) , 0xAAL) , (***l_20)) | g_32[1][0][0]), p_10) | l_2880))) == 0xE79ED781L) , p_9), g_1373)), p_11)))) , 0xE1EAB4C4L), p_10, l_2882) || (**g_2807))), 48)) > 0x30L)) , (*l_64))), p_11)), p_9)) & g_1373), p_11, g_243[1][4][1], g_3604, l_3606);
    return p_10;
}


/* ------------------------------------------ */
/* 
 * reads : g_406 g_123 g_17 g_18 g_95 g_19 g_32 g_71 g_72 g_2 g_138 g_3614
 * writes: g_406 g_123 g_18 g_32 g_120 g_72 g_138 g_19 g_1489
 */
static int32_t * func_21(const int8_t  p_22, int16_t  p_23, const int16_t  p_24, const int32_t *** p_25, int64_t  p_26)
{ /* block id: 1669 */
    uint8_t l_3609 = 3UL;
    int32_t *l_3611 = &g_123;
    uint32_t **l_3615 = &g_2808;
    for (g_406 = 4; (g_406 == 9); g_406 = safe_add_func_int32_t_s_s(g_406, 1))
    { /* block id: 1672 */
        int32_t **l_3610 = &g_343;
        uint8_t *l_3612 = (void*)0;
        const int32_t *l_3613 = (void*)0;
        if (l_3609)
            break;
        (*g_3614) = (l_3613 = func_108(l_3610, l_3611, ((*l_3611) ^= p_24)));
        (**g_17) &= (l_3615 == (void*)0);
    }
    return l_3611;
}


/* ------------------------------------------ */
/* 
 * reads : g_2371 g_1085 g_1372 g_796 g_2267 g_2268 g_2074 g_1872 g_1873 g_1874 g_1602 g_1603 g_765 g_276 g_2808 g_793 g_2359 g_2807 g_960 g_579 g_318 g_17 g_18 g_204 g_721 g_722 g_723 g_71 g_2729 g_2730 g_1922 g_1083 g_1084 g_95 g_509 g_550 g_123 g_199 g_19 g_32 g_72 g_2 g_138 g_447 g_448 g_764 g_2461
 * writes: g_2371 g_2096 g_960 g_318 g_302 g_579 g_922 g_509 g_19 g_204 g_72 g_2807 g_95 g_791 g_18 g_32 g_120 g_123 g_138 g_2461 g_247 g_1085
 */
static int32_t  func_37(int32_t  p_38, int64_t  p_39, uint32_t  p_40)
{ /* block id: 1318 */
    uint16_t * const * const *l_2891 = &g_1083;
    uint16_t ***l_2892 = &g_764[1][3][1];
    int32_t l_2905[10];
    int16_t l_2927 = (-1L);
    int32_t l_2930[9] = {0xB28BC0C6L,0xB28BC0C6L,0x9261D89DL,0xB28BC0C6L,0xB28BC0C6L,0x9261D89DL,0xB28BC0C6L,0xB28BC0C6L,0x9261D89DL};
    uint16_t *****l_2938 = &g_867[3];
    int32_t * const *l_3029 = &g_72;
    int32_t *l_3038 = &g_318;
    uint8_t *l_3058 = &g_1336;
    uint8_t **l_3057 = &l_3058;
    uint8_t ***l_3056 = &l_3057;
    uint64_t l_3087 = 0x37B6280BB43D8D24LL;
    int64_t ***l_3108 = &g_2826[2];
    uint8_t l_3115 = 0x92L;
    int16_t *l_3248 = &g_95;
    int16_t **l_3247 = &l_3248;
    uint32_t ** const l_3291[8][3][2] = {{{&g_2808,&g_2808},{&g_2808,&g_2808},{&g_2808,&g_2808}},{{&g_2808,&g_2808},{&g_2808,&g_2808},{&g_2808,&g_2808}},{{&g_2808,&g_2808},{&g_2808,&g_2808},{&g_2808,&g_2808}},{{&g_2808,&g_2808},{&g_2808,&g_2808},{&g_2808,&g_2808}},{{&g_2808,&g_2808},{&g_2808,&g_2808},{&g_2808,&g_2808}},{{&g_2808,&g_2808},{&g_2808,&g_2808},{&g_2808,&g_2808}},{{&g_2808,&g_2808},{&g_2808,&g_2808},{&g_2808,&g_2808}},{{&g_2808,&g_2808},{&g_2808,&g_2808},{&g_2808,&g_2808}}};
    int16_t l_3369 = (-8L);
    int8_t l_3595 = (-9L);
    int32_t l_3603 = (-7L);
    int i, j, k;
    for (i = 0; i < 10; i++)
        l_2905[i] = (-1L);
    for (p_38 = 0; (p_38 < (-20)); p_38 = safe_sub_func_uint8_t_u_u(p_38, 5))
    { /* block id: 1321 */
        int32_t *l_2904 = &g_1372[5];
        int32_t l_2907 = 0L;
        int64_t *l_2949[3][6][6] = {{{&g_242,&g_242,&g_2371,&g_242,&g_242,&g_242},{&g_1999,&g_242,&g_242,&g_1999,(void*)0,&g_1999},{&g_1999,(void*)0,&g_1999,&g_242,&g_242,&g_1999},{&g_242,&g_242,&g_242,&g_2371,&g_242,&g_242},{&g_242,(void*)0,&g_2371,&g_2371,(void*)0,&g_242},{&g_242,&g_242,&g_2371,&g_242,&g_242,&g_242}},{{&g_1999,&g_242,&g_242,&g_1999,(void*)0,&g_1999},{&g_1999,(void*)0,&g_1999,&g_242,&g_242,&g_1999},{&g_242,&g_242,&g_242,&g_2371,&g_242,&g_242},{&g_242,(void*)0,&g_2371,&g_2371,(void*)0,&g_242},{&g_242,&g_242,&g_2371,&g_242,&g_242,&g_242},{&g_1999,&g_242,&g_242,&g_1999,(void*)0,&g_1999}},{{&g_1999,(void*)0,&g_1999,&g_242,&g_242,&g_2371},{&g_242,&g_242,&g_1999,(void*)0,&g_1999,&g_242},{&g_1999,&g_242,(void*)0,(void*)0,&g_242,&g_1999},{&g_242,&g_1999,(void*)0,&g_1999,&g_242,&g_242},{&g_2371,&g_1999,&g_1999,&g_2371,&g_242,&g_2371},{&g_2371,&g_242,&g_2371,&g_1999,&g_1999,&g_2371}}};
        uint8_t *l_2958 = &g_2461;
        uint8_t *l_2959[6] = {&g_1954,&g_1954,(void*)0,&g_1954,&g_1954,(void*)0};
        int16_t l_2998 = 0x7CA2L;
        uint32_t ** const l_3010 = (void*)0;
        int16_t l_3037 = 7L;
        int i, j, k;
        for (g_2371 = 5; (g_2371 >= 2); g_2371 -= 1)
        { /* block id: 1324 */
            uint16_t ****l_2893 = &l_2892;
            uint64_t *l_2906 = &g_2096;
            int32_t *l_2909 = &g_318;
            uint32_t **l_2997 = &g_2808;
            uint32_t **l_3009 = &g_832;
            int i;
            l_2907 ^= (2L < (safe_div_func_int8_t_s_s(g_1085[g_2371], (((*g_2808) = (safe_sub_func_uint32_t_u_u((safe_div_func_int32_t_s_s(((l_2891 != ((*l_2893) = l_2892)) || (((safe_mul_func_uint8_t_u_u(g_1372[(g_2371 + 1)], (((*l_2906) = (safe_div_func_int16_t_s_s((p_38 <= (((safe_div_func_int16_t_s_s((safe_div_func_uint8_t_u_u((safe_mul_func_int32_t_s_s((g_796 || ((0x7AL | (l_2904 != &g_1372[(g_2371 + 1)])) > 0xC6L)), 4294967289UL)), (*****g_2267))), l_2905[6])) , p_38) , 0x5A307DB8L)), 0x36D5L))) , p_39))) && (*g_1602)) , (*g_765))), 4294967288UL)), l_2905[6]))) , p_39))));
            if (g_1372[(g_2371 + 1)])
                continue;
            if ((!((*l_2909) = (g_793[0][8] < (**g_2359)))))
            { /* block id: 1331 */
                uint32_t l_2912 = 0x34A45C61L;
                int64_t *l_2922 = &g_302[0][4][1];
                int16_t *l_2928 = &g_922;
                uint8_t l_2929 = 0x54L;
                l_2930[8] = ((safe_mul_func_int8_t_s_s((l_2912 && ((**g_2359) | (safe_mod_func_uint8_t_u_u((safe_rshift_func_int32_t_s_u(((1UL | (safe_add_func_int64_t_s_s((((l_2905[8] = (0xCCD57574F83CAB8DLL | (((*l_2928) = ((g_579 &= (+((safe_div_func_int64_t_s_s(((*l_2922) = 0x76BE7141924DF63CLL), 0x97B0FB15990F2FA8LL)) || (safe_rshift_func_uint32_t_u_u(((((*g_2807) == (void*)0) >= (safe_rshift_func_uint8_t_u_s(l_2927, l_2927))) || l_2905[6]), (*g_2808)))))) != p_38)) <= l_2907))) & p_39) & p_39), l_2929))) >= (*l_2909)), l_2929)), p_39)))), p_40)) > (*l_2909));
            }
            else
            { /* block id: 1337 */
                int16_t l_2933[6] = {0x6083L,0x6083L,0x6083L,0x6083L,0x6083L,0x6083L};
                uint16_t *****l_2939 = &l_2893;
                int64_t *l_2951[9] = {&g_242,&g_242,&g_242,&g_242,&g_242,&g_242,&g_242,&g_242,&g_242};
                uint32_t l_2972 = 0x9F9E4A5EL;
                int32_t l_2999 = 0x21D5D342L;
                int i;
                for (g_509 = 4; (g_509 >= 0); g_509 -= 1)
                { /* block id: 1340 */
                    int16_t *l_2946 = &g_204;
                    int64_t **l_2950 = &l_2949[2][4][4];
                    int8_t *l_2952 = (void*)0;
                    int8_t *l_2953[3][2][4] = {{{&g_509,&g_509,&g_1373,&g_509},{&g_509,&g_1373,&g_1373,&g_509}},{{&g_1373,&g_509,&g_1373,&g_1373},{&g_509,&g_509,&g_1373,&g_509}},{{&g_509,&g_1373,&g_1373,&g_509},{&g_1373,&g_509,&g_1373,&g_1373}}};
                    int32_t l_2974 = 0x894EB427L;
                    int i, j, k;
                    (**g_17) = 0x1286CC77L;
                    if ((safe_add_func_uint32_t_u_u((l_2933[5] ^ (safe_rshift_func_uint64_t_u_s(((*l_2906) = ((p_39 <= ((*l_2909) = ((safe_lshift_func_int64_t_s_s((((0xC18AL > ((l_2939 = l_2938) == ((*l_2909) , &g_867[0]))) , (p_40 ^ (safe_mul_func_int8_t_s_s(((safe_mul_func_int16_t_s_s((safe_mod_func_uint32_t_u_u(((((*l_2946) ^= (-3L)) <= (safe_mul_func_int16_t_s_s((((*l_2950) = l_2949[2][3][0]) != l_2951[1]), p_38))) > p_38), (*g_2808))), p_40)) & (*l_2909)), p_39)))) , 0x3FE7991FDF539AC5LL), p_40)) != (**g_721)))) | 0xA4988B24L)), 6))), p_40)))
                    { /* block id: 1347 */
                        return l_2907;
                    }
                    else
                    { /* block id: 1349 */
                        int8_t l_2973 = 1L;
                        int32_t **l_2986 = &g_792[1][3][2];
                        int32_t ***l_2985 = &l_2986;
                        int32_t l_2987 = (-1L);
                        uint32_t ***l_2996 = &g_2807;
                        (*g_71) = &p_38;
                        l_2974 &= (safe_div_func_int32_t_s_s((safe_sub_func_uint16_t_u_u(((((l_2958 == (*g_2729)) ^ (((*l_2950) = (void*)0) != ((((((l_2930[2] , l_2959[1]) == l_2958) & (safe_div_func_uint64_t_u_u((safe_lshift_func_int8_t_s_s(l_2933[4], 6)), (((safe_div_func_int8_t_s_s(p_38, (l_2973 ^= (((safe_rshift_func_int8_t_s_u((l_2972 = (safe_add_func_uint16_t_u_u((safe_rshift_func_int8_t_s_u(p_39, (**g_1872))), 0x008EL))), 1)) && 0x63E824D3L) , p_40)))) > (*g_2808)) & p_38)))) || l_2973) , (*l_2909)) , (void*)0))) != (-10L)) < g_1922[5]), (*l_2909))), p_39));
                        l_2999 |= (safe_mod_func_uint16_t_u_u((((g_95 ^= ((safe_rshift_func_int64_t_s_u(((safe_rshift_func_int64_t_s_s(0xA0B12E2563D3A573LL, ((safe_mul_func_uint64_t_u_u(0x43F1CF17BFF7E2D3LL, (safe_mul_func_uint32_t_u_u(((254UL != p_39) > (l_2987 = (((*l_2985) = &g_792[2][4][7]) == &g_792[2][3][5]))), (((safe_lshift_func_int8_t_s_s(((safe_mod_func_int32_t_s_s(((safe_add_func_uint16_t_u_u((safe_mul_func_int16_t_s_s(1L, (((*l_2996) = &g_2808) == l_2997))), (**g_1083))) | l_2972), (*g_1602))) != 254UL), l_2974)) != p_40) , 0x9079C265L))))) | (-1L)))) & l_2973), l_2998)) , (*l_2909))) ^ 0x7590L) <= l_2927), g_509));
                        return (*g_550);
                    }
                }
                (*l_2909) &= l_2907;
            }
            for (g_791 = 1; (g_791 <= 6); g_791 += 1)
            { /* block id: 1367 */
                int32_t *l_3000 = &g_32[2][0][1];
                int32_t l_3008 = 0xCB1DDBBFL;
                (*g_71) = &l_2907;
                l_3000 = func_108((*g_199), ((*g_71) = l_3000), p_40);
                for (g_2461 = 0; (g_2461 <= 5); g_2461 += 1)
                { /* block id: 1373 */
                    int16_t l_3007 = 0x59A4L;
                    int32_t l_3011 = 0xF6D12788L;
                    uint16_t l_3017 = 0x51AAL;
                    for (g_247 = 0; (g_247 <= 6); g_247 += 1)
                    { /* block id: 1376 */
                        int32_t *l_3001 = (void*)0;
                        int8_t *l_3020 = (void*)0;
                        int i;
                        l_3001 = &l_2905[6];
                        l_3011 ^= (safe_mul_func_uint16_t_u_u((g_1085[g_2371] = (+0x8FL)), (safe_add_func_uint64_t_u_u((l_3007 >= (l_2907 = p_38)), ((((((l_3008 < (((l_3009 != l_3010) ^ p_40) || (*g_2808))) >= 0x17BFDD7FL) != p_39) || (**g_2807)) , (void*)0) != &l_2997)))));
                        (*l_2909) = (safe_lshift_func_uint64_t_u_s((((~(((*g_447) != (*l_2892)) > (p_38 != (safe_lshift_func_uint8_t_u_s((g_1874 >= (p_40 , 9L)), 2))))) && ((l_3017 = (((*g_71) = &p_38) != &p_38)) > ((safe_mul_func_int8_t_s_s((g_509 = p_38), p_40)) != p_38))) , (**g_721)), 11));
                    }
                }
            }
        }
        l_3037 = (((safe_rshift_func_int64_t_s_u((safe_rshift_func_uint8_t_u_u((safe_div_func_uint32_t_u_u((l_2927 == 0x7072CFBAL), ((**g_2807) ^ p_39))), 5)), (safe_sub_func_uint8_t_u_u((l_3029 != (void*)0), (safe_sub_func_int32_t_s_s((safe_mul_func_int16_t_s_s(p_38, (safe_lshift_func_uint32_t_u_u((l_2907 = ((((*l_2958) ^= ((!65526UL) , 0x16L)) > 0xFBL) , 4294967295UL)), 24)))), p_39)))))) || p_38) != p_38);
    }
    l_3038 = &p_38;
    return l_3603;
}


/* ------------------------------------------ */
/* 
 * reads : g_71 g_318 g_32 g_72 g_2 g_408 g_1602 g_1603 g_243 g_1081 g_1082 g_1083 g_1084 g_1085
 * writes: g_408 g_2371 g_1085 g_72
 */
static const int8_t  func_45(uint8_t  p_46, uint32_t  p_47)
{ /* block id: 13 */
    int32_t ***l_79 = &g_71;
    int64_t *l_2855 = (void*)0;
    int32_t l_2856 = 0L;
    uint64_t *l_2859 = &g_408[1][2][2];
    uint16_t *l_2866 = (void*)0;
    uint32_t l_2867[1][1];
    int i, j;
    for (i = 0; i < 1; i++)
    {
        for (j = 0; j < 1; j++)
            l_2867[i][j] = 1UL;
    }
    (*g_71) = func_68(g_71, ((safe_sub_func_uint16_t_u_u((safe_lshift_func_int8_t_s_s(func_77(l_79), 0)), (safe_sub_func_int8_t_s_s((p_46 | (l_2856 = ((***l_79) , 0L))), ((safe_rshift_func_uint64_t_u_s(((*l_2859)--), 15)) < ((0UL == (safe_rshift_func_int32_t_s_u(((safe_add_func_int32_t_s_s((p_47 & ((void*)0 != l_2866)), 0xACD4DC85L)) & l_2867[0][0]), (***l_79)))) == 0x7AL)))))) , p_46));
    return (***l_79);
}


/* ------------------------------------------ */
/* 
 * reads : g_18
 * writes: g_19
 */
static int32_t ** func_55(int32_t * const  p_56, int32_t *** p_57, const uint8_t  p_58, int32_t * const  p_59, uint16_t  p_60)
{ /* block id: 8 */
    int32_t **l_63 = (void*)0;
    (*g_18) = (safe_rshift_func_int16_t_s_u(0xAEA1L, 12));
    return l_63;
}


/* ------------------------------------------ */
/* 
 * reads : g_1602 g_1603 g_243 g_1081 g_1082 g_1083 g_1084 g_1085 g_72 g_343
 * writes: g_2371 g_1085
 */
static int32_t * func_68(int32_t ** p_69, int32_t  p_70)
{ /* block id: 1309 */
    int64_t *l_2868 = &g_2371;
    int32_t l_2869 = 0L;
    uint8_t l_2870 = 0x8DL;
    int32_t *l_2878[6];
    uint16_t l_2879 = 65535UL;
    int i;
    for (i = 0; i < 6; i++)
        l_2878[i] = &g_1674;
    l_2879 &= ((((l_2869 = ((*l_2868) = p_70)) ^ ((l_2870 == ((l_2870 , 2UL) , (safe_mod_func_int16_t_s_s((safe_unary_minus_func_uint32_t_u(((safe_rshift_func_int32_t_s_u(((void*)0 == p_69), (*g_1602))) & (p_70 == ((****g_1081) ^= (safe_sub_func_uint8_t_u_u(((((((l_2870 && 0x2AL) | 0L) == l_2870) , g_243[1][0][0]) ^ p_70) >= 0x0257A144BDD95A34LL), (-8L)))))))), 3UL)))) , 0UL)) , 0x723CL) <= l_2870);
    return (*p_69);
}


/* ------------------------------------------ */
/* 
 * reads : g_318 g_32
 * writes:
 */
static int8_t  func_77(int32_t *** p_78)
{ /* block id: 14 */
    int64_t l_80 = 0xA8F60F1B6398C3D3LL;
    int32_t *l_81 = &g_32[2][0][1];
    int32_t *l_82[9][10] = {{&g_2,&g_2,&g_32[2][0][0],&g_2,&g_2,&g_32[2][0][0],&g_2,&g_32[1][0][1],(void*)0,&g_32[2][0][1]},{(void*)0,&g_32[2][0][1],&g_32[0][0][1],&g_32[2][0][1],&g_32[2][0][1],(void*)0,&g_32[2][0][1],&g_32[2][0][1],&g_2,&g_2},{&g_2,&g_2,&g_32[0][0][1],&g_32[2][0][0],&g_32[2][0][1],&g_32[1][0][1],&g_32[1][0][1],&g_32[2][0][1],&g_32[2][0][0],&g_32[0][0][1]},{&g_2,&g_2,(void*)0,&g_2,&g_32[2][0][0],&g_32[2][0][0],(void*)0,&g_32[0][0][1],&g_32[2][0][1],&g_2},{&g_32[2][0][1],(void*)0,&g_32[2][0][1],&g_32[2][0][1],&g_32[0][0][1],&g_32[2][0][1],(void*)0,&g_32[1][0][1],&g_32[0][0][0],&g_32[1][0][0]},{&g_32[2][0][0],&g_2,(void*)0,&g_32[1][0][1],&g_2,(void*)0,&g_32[1][0][1],&g_2,&g_32[2][0][1],&g_32[0][0][0]},{&g_32[0][0][1],&g_2,&g_32[2][0][0],(void*)0,&g_32[2][0][1],&g_32[2][0][1],&g_32[2][0][1],(void*)0,&g_32[2][0][0],&g_2},{&g_2,&g_32[2][0][1],&g_32[1][0][1],&g_32[2][0][1],&g_32[0][0][1],&g_2,&g_2,&g_32[2][0][0],&g_2,&g_32[2][0][0]},{&g_32[0][0][0],&g_2,(void*)0,&g_32[0][0][0],&g_32[2][0][1],&g_2,&g_32[0][0][1],&g_2,&g_32[0][0][1],&g_32[1][0][1]}};
    int32_t l_83 = 4L;
    int32_t l_84 = 0x99B685FDL;
    uint16_t l_85 = 0xDCD7L;
    const int32_t *l_707[8] = {&g_32[1][0][0],&g_318,&g_32[1][0][0],&g_318,&g_32[1][0][0],&g_318,&g_32[1][0][0],&g_318};
    const int32_t **l_706[10];
    const int32_t ***l_705 = &l_706[2];
    const int32_t ****l_704 = &l_705;
    const int32_t *****l_703 = &l_704;
    uint64_t l_714 = 1UL;
    uint16_t *l_720 = &g_276;
    uint16_t **l_719 = &l_720;
    uint16_t ***l_718 = &l_719;
    uint32_t l_730 = 18446744073709551615UL;
    uint32_t l_751 = 0UL;
    uint8_t *l_762 = &g_243[1][0][2];
    uint16_t l_781 = 65527UL;
    int16_t l_837 = (-7L);
    uint32_t l_853 = 18446744073709551615UL;
    int32_t ***l_880 = (void*)0;
    const int8_t *l_953 = &g_954;
    int8_t l_957 = 0xE3L;
    uint64_t l_966 = 6UL;
    uint64_t l_969 = 0x11EB670F32DA78CDLL;
    uint8_t **l_971 = &l_762;
    uint8_t *** const l_970 = &l_971;
    int64_t l_1010[7] = {0L,(-1L),0L,0L,(-1L),0L,0L};
    uint16_t ****l_1076[10][1] = {{(void*)0},{&g_763},{(void*)0},{&g_763},{(void*)0},{&g_763},{(void*)0},{&g_763},{(void*)0},{&g_763}};
    uint16_t * const **l_1079 = (void*)0;
    uint16_t * const ***l_1078 = &l_1079;
    uint16_t * const ****l_1077 = &l_1078;
    int32_t **l_1112 = (void*)0;
    int32_t **l_1113 = &g_792[1][1][7];
    int32_t l_1139 = 6L;
    uint8_t l_1252 = 1UL;
    uint8_t l_1281 = 0xB6L;
    uint8_t l_1315[4];
    uint32_t l_1473 = 18446744073709551607UL;
    uint8_t l_1475 = 0x96L;
    int8_t **l_1514[1];
    uint32_t *l_1539 = &l_751;
    uint32_t l_1558 = 0xEDDDACB9L;
    uint16_t l_1709 = 0xF49AL;
    const int32_t *l_1768 = &g_32[2][0][1];
    uint32_t l_1830 = 0UL;
    int32_t l_1933 = (-1L);
    uint8_t l_1975 = 0x2FL;
    int32_t *****l_1989 = &g_198[1][1];
    uint16_t l_1998 = 0UL;
    int8_t l_2010 = 0x7FL;
    uint32_t ****l_2022 = &g_830;
    int16_t l_2060 = (-4L);
    int16_t l_2080 = 0L;
    uint32_t l_2099 = 0xB7700CD8L;
    uint64_t l_2149 = 0xC091356E7EB8FC56LL;
    int16_t l_2197 = (-8L);
    int16_t l_2201 = (-6L);
    int64_t l_2205[7] = {1L,1L,1L,1L,1L,1L,1L};
    uint32_t l_2206[4];
    uint8_t l_2282[7][9][1] = {{{0xA0L},{0xD4L},{0x99L},{0xD4L},{0xA0L},{247UL},{0x99L},{247UL},{0xA0L}},{{0xD4L},{0x99L},{0xD4L},{0xA0L},{247UL},{0x99L},{247UL},{0xA0L},{0xD4L}},{{0x99L},{0xD4L},{0xA0L},{247UL},{0x99L},{247UL},{0xA0L},{0xD4L},{0x99L}},{{0xD4L},{0xA0L},{247UL},{0x99L},{247UL},{0xA0L},{0xD4L},{0x99L},{0xD4L}},{{0xA0L},{247UL},{0x99L},{247UL},{0xA0L},{0xD4L},{0x99L},{0xD4L},{0xA0L}},{{247UL},{0x99L},{247UL},{0xA0L},{0xD4L},{0x99L},{0xD4L},{0xA0L},{247UL}},{{0x99L},{247UL},{0xA0L},{0xD4L},{0x99L},{0xD4L},{0xA0L},{247UL},{0x99L}}};
    int32_t l_2317[7];
    uint16_t l_2361 = 0UL;
    uint8_t l_2368 = 0x49L;
    int16_t l_2381[5][3][9] = {{{0xC7ECL,0xE549L,(-1L),1L,0xF408L,0xC7ECL,0xC7ECL,0xF408L,1L},{0xBC39L,0xE526L,0xBC39L,(-1L),0xF408L,0xBC39L,1L,9L,(-1L)},{0xBC39L,0xF408L,(-1L),0xBC39L,0xE526L,0xBC39L,(-1L),0xF408L,0xBC39L}},{{0xC7ECL,0xF408L,1L,(-1L),0xE549L,0xC7ECL,(-1L),0x9404L,(-1L)},{(-1L),0xE526L,1L,1L,0xE526L,(-1L),1L,0x9404L,1L},{0xC7ECL,0xE549L,(-1L),1L,0xF408L,0xC7ECL,0xC7ECL,0xF408L,1L}},{{0xBC39L,0xE526L,0xBC39L,(-1L),0xF408L,0xBC39L,1L,9L,(-1L)},{0xBC39L,0xF408L,(-1L),0xBC39L,0xE526L,0xBC39L,(-1L),0xF408L,0xBC39L},{0xC7ECL,0xF408L,1L,(-1L),0xE549L,0xC7ECL,(-1L),0x9404L,(-1L)}},{{(-1L),0xE526L,1L,1L,0xE526L,(-1L),1L,0x9404L,1L},{0xC7ECL,0xE549L,(-1L),1L,0xF408L,0xC7ECL,0xC7ECL,0xF408L,1L},{0xBC39L,0xE526L,0xBC39L,(-1L),0xF408L,0xBC39L,1L,9L,(-1L)}},{{0xBC39L,0xF408L,(-1L),0xBC39L,0xE526L,0xBC39L,(-1L),0xF408L,0xBC39L},{0xC7ECL,0xF408L,1L,0x801CL,(-1L),(-6L),0x801CL,1L,0x801CL},{0x801CL,0xC7ECL,6L,6L,0xC7ECL,0x801CL,9L,1L,6L}}};
    int32_t l_2398 = (-7L);
    uint64_t * const l_2434 = &g_2096;
    uint64_t * const *l_2433 = &l_2434;
    int64_t l_2624 = (-6L);
    uint8_t l_2625 = 0x66L;
    uint16_t l_2627[6];
    int32_t l_2715 = 1L;
    uint64_t *l_2723 = (void*)0;
    uint8_t ***l_2734 = &l_971;
    uint8_t ****l_2733 = &l_2734;
    uint8_t *****l_2732 = &l_2733;
    int16_t l_2795[1][4] = {{0x8645L,0x8645L,0x8645L,0x8645L}};
    uint32_t l_2818 = 0UL;
    uint32_t **l_2819[4] = {(void*)0,(void*)0,(void*)0,(void*)0};
    uint32_t l_2837 = 0x7D646BF4L;
    int16_t l_2841[3][8][9] = {{{0x1293L,0xFDDBL,(-9L),0x788CL,(-9L),0xCC18L,0x9099L,0x12E9L,0x12E9L},{4L,0xF2E2L,0x3283L,3L,0x3283L,0xF2E2L,4L,0x8119L,1L},{0x9099L,0xCC18L,(-9L),0x788CL,(-9L),0xFDDBL,0x1293L,0xDF9AL,(-9L)},{3L,0xD4FCL,(-1L),0x09E0L,1L,(-1L),0x1200L,0x8119L,0xF2E2L},{(-2L),0x7CC5L,0xCC18L,0xF65BL,0x7CC5L,(-9L),0L,0x12E9L,0x16DBL},{0xFC78L,0x5235L,(-1L),0x0C60L,1L,1L,0x0C60L,(-1L),0x5235L},{0x1CEEL,0x10B4L,(-9L),0x1293L,0x244AL,0xDF9AL,0L,0x7F65L,0xDF9AL},{0L,(-1L),0x3283L,0x2FD4L,(-7L),(-1L),0x1200L,0xD4FCL,0xEEEFL}},{{2L,0x10B4L,(-9L),1L,0x12E9L,0L,0x1293L,0x10B4L,0xFDDBL},{0x09E0L,0x5235L,1L,0L,0xD4FCL,(-1L),4L,(-1L),0xD4FCL},{0xB3DAL,0x7CC5L,0x7CC5L,0xB3DAL,0L,0xDF9AL,0x9099L,(-9L),0x244AL},{0x09E0L,0xD4FCL,1L,0xC359L,(-1L),1L,3L,0L,0x3283L},{2L,0xCC18L,0x244AL,0L,0L,(-9L),(-2L),0L,0x7F65L},{0L,0xF2E2L,(-7L),(-1L),0xD4FCL,(-1L),0xFC78L,0x3283L,0x3283L},{0x1CEEL,0xFDDBL,0x12E9L,(-2L),0x12E9L,0xFDDBL,0x1CEEL,0x80E0L,0x244AL},{0xFC78L,(-1L),0xD4FCL,(-1L),(-7L),0xF2E2L,0L,0x5235L,0xD4FCL}},{{(-2L),(-9L),0L,0L,0x244AL,0xCC18L,2L,0x80E0L,0xFDDBL},{3L,1L,(-1L),0xC359L,1L,0xD4FCL,0x09E0L,0x3283L,0xEEEFL},{0x9099L,0xDF9AL,0L,0xB3DAL,0x7CC5L,0x7CC5L,(-9L),1L,0L},{0xEEEFL,0x9C2BL,0x4A51L,(-1L),2L,(-1L),0x5235L,(-2L),(-1L)},{0xCC18L,1L,0xE7DDL,0xFDDBL,0xA1F6L,0L,0x7F65L,1L,0x4EB5L},{0L,0x9C2BL,0x4296L,0xF2E2L,1L,3L,(-1L),0x9C2BL,3L},{0xDF9AL,0L,0x2758L,0xCC18L,1L,0L,0x16DBL,0L,1L},{0xD4FCL,(-9L),(-9L),0xD4FCL,3L,(-1L),(-7L),0x4A51L,2L}}};
    int i, j, k;
    for (i = 0; i < 10; i++)
        l_706[i] = &l_707[0];
    for (i = 0; i < 4; i++)
        l_1315[i] = 0x3EL;
    for (i = 0; i < 1; i++)
        l_1514[i] = &g_1405;
    for (i = 0; i < 4; i++)
        l_2206[i] = 3UL;
    for (i = 0; i < 7; i++)
        l_2317[i] = 0xF20F69DBL;
    for (i = 0; i < 6; i++)
        l_2627[i] = 65526UL;
    ++l_85;
    return (****l_704);
}


/* ------------------------------------------ */
/* 
 * reads : g_138 g_123 g_172 g_32 g_19 g_95 g_198 g_122 g_243 g_199 g_71 g_276 g_17 g_18 g_318 g_246 g_204 g_342 g_302 g_72 g_408 g_447 g_2 g_343 g_406 g_581
 * writes: g_123 g_172 g_138 g_32 g_198 g_204 g_242 g_243 g_246 g_247 g_19 g_72 g_276 g_343 g_18 g_408 g_443 g_509 g_120
 */
static uint64_t  func_103(int32_t * p_104, int32_t  p_105, uint32_t  p_106, const int64_t  p_107)
{ /* block id: 69 */
    int32_t l_155 = 0x41CFB411L;
    int32_t l_162[10] = {0xFA761878L,1L,0xFA761878L,1L,0xFA761878L,1L,0xFA761878L,1L,0xFA761878L,1L};
    int32_t ***l_182 = &g_71;
    uint16_t l_212 = 0x74E6L;
    int64_t l_304 = 0x32D48C36216C4AE4LL;
    int32_t * const **l_320 = (void*)0;
    uint32_t l_328 = 0x234A3DA8L;
    uint16_t *l_333 = &l_212;
    int16_t l_424 = 0xE445L;
    uint32_t l_513 = 0x07FD4078L;
    int32_t *l_515 = &g_32[2][0][1];
    int32_t *l_516 = &g_123;
    int32_t *l_517 = &g_318;
    int32_t *l_518 = &l_162[3];
    int32_t *l_519 = (void*)0;
    int32_t *l_520 = &l_162[0];
    int32_t *l_521 = &l_162[0];
    int32_t *l_522 = &g_123;
    int32_t *l_523[2];
    int8_t l_524 = 2L;
    uint32_t l_525 = 0xEBCDABB2L;
    int16_t l_595[10][6] = {{0x64B2L,0xE708L,0x64B2L,(-1L),1L,0x64B2L},{0L,0x4BC5L,(-1L),(-1L),1L,0L},{(-1L),0xE708L,(-1L),(-1L),0xE708L,(-1L)},{0L,1L,(-1L),(-1L),0x4BC5L,0L},{0x64B2L,1L,(-1L),0x64B2L,0xE708L,0x64B2L},{0x64B2L,0xE708L,0x64B2L,(-1L),1L,0x64B2L},{0L,0x4BC5L,(-1L),(-1L),1L,0L},{(-1L),0xE708L,(-1L),(-1L),0xE708L,(-1L)},{0L,1L,(-1L),(-1L),0x4BC5L,0L},{0x64B2L,1L,(-1L),0x64B2L,0xE708L,0x64B2L}};
    uint32_t l_598 = 0x0DD46CE1L;
    uint16_t **l_637 = (void*)0;
    uint16_t l_640 = 0xFEA6L;
    int i, j;
    for (i = 0; i < 2; i++)
        l_523[i] = &l_162[2];
    if ((safe_lshift_func_int64_t_s_u(0x1BA8B1B8A3034F45LL, 0)))
    { /* block id: 70 */
        uint16_t l_156 = 5UL;
        int32_t l_164 = (-1L);
        uint8_t l_166[10][5][3] = {{{246UL,0xE6L,0x8AL},{255UL,251UL,246UL},{0x8AL,251UL,0x46L},{0x06L,0xE6L,0UL},{0x8AL,0xECL,0UL}},{{255UL,251UL,0x46L},{246UL,0xECL,246UL},{246UL,0xE6L,0x8AL},{255UL,251UL,246UL},{0x8AL,251UL,0x46L}},{{0x06L,0xE6L,0UL},{0x8AL,0xECL,0UL},{255UL,251UL,0x46L},{246UL,0xECL,246UL},{246UL,0xE6L,0x8AL}},{{255UL,251UL,246UL},{0x8AL,251UL,0x46L},{0x06L,0xE6L,0UL},{0x8AL,0xECL,0UL},{255UL,251UL,0x46L}},{{246UL,0xECL,246UL},{246UL,0xE6L,0x8AL},{255UL,251UL,246UL},{0x8AL,251UL,0x46L},{0x06L,246UL,0x09L}},{{0xEAL,6UL,0x09L},{0x69L,0x46L,0xABL},{1UL,6UL,1UL},{1UL,246UL,0xEAL},{0x69L,0x06L,1UL}},{{0xEAL,0x06L,0xABL},{0x72L,246UL,0x09L},{0xEAL,6UL,0x09L},{0x69L,0x46L,0xABL},{1UL,6UL,1UL}},{{1UL,246UL,0xEAL},{0x69L,0x06L,1UL},{0xEAL,0x06L,0xABL},{0x72L,246UL,0x09L},{0xEAL,6UL,0x09L}},{{0x69L,0x46L,0xABL},{1UL,6UL,1UL},{1UL,246UL,0xEAL},{0x69L,0x06L,1UL},{0xEAL,0x06L,0xABL}},{{0x72L,246UL,0x09L},{0xEAL,6UL,0x09L},{0x69L,0x46L,0xABL},{1UL,6UL,1UL},{1UL,246UL,0xEAL}}};
        int32_t l_208 = 0x2385D345L;
        int32_t l_211 = 0x7F84D97DL;
        uint64_t l_245 = 0x0FA444388C200B22LL;
        int32_t * const *l_270 = &g_72;
        int32_t **l_271 = &g_72;
        int32_t **l_275 = &g_72;
        int32_t l_289 = (-4L);
        int32_t l_290 = 0x50913CCFL;
        int32_t l_291 = (-8L);
        int32_t l_292 = (-1L);
        int64_t l_293[6][4][8] = {{{0x538B94E0BD355996LL,1L,1L,1L,0x7D2125E7B404CEC7LL,1L,0L,(-3L)},{0xA43ECDC7678E5789LL,1L,0x23279484E8CF44FALL,0x5ADC29A58C599B7ALL,0x7D2125E7B404CEC7LL,8L,0xDD013BA0803C7867LL,0L},{0x538B94E0BD355996LL,0x571C69D0EBEF6AE4LL,0x18C845F3664502EELL,(-3L),0x92E2E9E0819938BFLL,0x39BEC88227EEC833LL,0xBEAA2B06BDCF934ALL,0xBEAA2B06BDCF934ALL},{1L,0xA43ECDC7678E5789LL,0x85BDA19C8E91322ALL,0x85BDA19C8E91322ALL,0xA43ECDC7678E5789LL,1L,0x18C845F3664502EELL,0L}},{{1L,8L,7L,0x92E2E9E0819938BFLL,7L,0L,0x538B94E0BD355996LL,8L},{1L,0x5DCE6AF9DE39D098LL,1L,0x92E2E9E0819938BFLL,0x24946EFC33BFAD31LL,0xDD013BA0803C7867LL,0x7D2125E7B404CEC7LL,0L},{0x7D2125E7B404CEC7LL,0x24946EFC33BFAD31LL,1L,0x85BDA19C8E91322ALL,0x23279484E8CF44FALL,0xBEAA2B06BDCF934ALL,0x571C69D0EBEF6AE4LL,0xBEAA2B06BDCF934ALL},{1L,(-3L),0x538B94E0BD355996LL,(-3L),1L,0x18C845F3664502EELL,8L,0L}},{{0L,0x39BEC88227EEC833LL,0L,0x5ADC29A58C599B7ALL,7L,0x538B94E0BD355996LL,1L,(-3L)},{(-3L),0x347421A43EE4E511LL,0L,1L,1L,0x7D2125E7B404CEC7LL,8L,1L},{7L,1L,0x538B94E0BD355996LL,0L,(-7L),0x571C69D0EBEF6AE4LL,0x571C69D0EBEF6AE4LL,(-7L)},{0x9E8EA0CD88C6BB1CLL,1L,1L,0x9E8EA0CD88C6BB1CLL,1L,8L,0x7D2125E7B404CEC7LL,1L}},{{0x5DCE6AF9DE39D098LL,0xDD013BA0803C7867LL,1L,0xBEAA2B06BDCF934ALL,(-3L),1L,0x538B94E0BD355996LL,7L},{0x571C69D0EBEF6AE4LL,0xDD013BA0803C7867LL,7L,7L,0L,8L,0x18C845F3664502EELL,1L},{0x24946EFC33BFAD31LL,1L,0x92E2E9E0819938BFLL,(-7L),7L,0L,7L,(-7L)},{0x5ADC29A58C599B7ALL,0x9E8EA0CD88C6BB1CLL,0x5ADC29A58C599B7ALL,1L,1L,0x39BEC88227EEC833LL,0x538B94E0BD355996LL,0xA8D8FB97BD805E11LL}},{{7L,8L,(-7L),(-3L),0x347421A43EE4E511LL,0L,1L,1L},{7L,0xBEAA2B06BDCF934ALL,0x9E8EA0CD88C6BB1CLL,0L,1L,0x5ADC29A58C599B7ALL,(-3L),0x85BDA19C8E91322ALL},{0x5ADC29A58C599B7ALL,0xA43ECDC7678E5789LL,0x7D2125E7B404CEC7LL,0xBEAA2B06BDCF934ALL,7L,7L,0xBEAA2B06BDCF934ALL,0x7D2125E7B404CEC7LL},{0xA8D8FB97BD805E11LL,0xA8D8FB97BD805E11LL,0x24946EFC33BFAD31LL,0L,0x23279484E8CF44FALL,0x538B94E0BD355996LL,1L,0x39BEC88227EEC833LL}},{{0L,0L,1L,8L,0xA43ECDC7678E5789LL,1L,0xDD013BA0803C7867LL,0x39BEC88227EEC833LL},{0L,1L,0x85BDA19C8E91322ALL,0L,1L,(-3L),0x5DCE6AF9DE39D098LL,0x7D2125E7B404CEC7LL},{1L,0x85BDA19C8E91322ALL,0x23279484E8CF44FALL,0xBEAA2B06BDCF934ALL,0x571C69D0EBEF6AE4LL,0xBEAA2B06BDCF934ALL,0x23279484E8CF44FALL,0x85BDA19C8E91322ALL},{8L,0L,0xBEAA2B06BDCF934ALL,0L,(-3L),1L,(-7L),1L}}};
        int32_t l_295 = (-8L);
        int32_t l_296 = 0x599C4984L;
        int16_t l_297 = 0x5142L;
        int32_t l_298 = 1L;
        int32_t l_299[7][7][5] = {{{0L,0xD2878E20L,(-5L),(-5L),0xD2878E20L},{4L,0L,(-2L),0x4533ADC3L,1L},{(-5L),0L,0xC2A40DF2L,0L,0x37A55F60L},{0x611F490CL,6L,0x4981EA6BL,0x813287D0L,0xC7D9DB92L},{(-5L),0L,0x06555FDDL,0xBECCE365L,0x00D58DC1L},{4L,0x4981EA6BL,0x611F490CL,0x5E4C15EDL,0xB04BF500L},{0L,0xA6E6C67AL,1L,0xB82785BFL,0x771DB680L}},{{0x4533ADC3L,0x255FA594L,0x988E7C59L,0x01918236L,(-2L)},{5L,0xBECCE365L,0x49A33E39L,0xEC6C433EL,0x8A9D4E29L},{0x5594337BL,0xD1CCF461L,0x01918236L,7L,7L},{0x37A55F60L,7L,0x37A55F60L,(-1L),4L},{0x22A5E9BBL,0xB04BF500L,6L,1L,0x988E7C59L},{1L,0L,0x8A9D4E29L,0x3A5D9CD9L,0xC2A40DF2L},{6L,1L,6L,0x988E7C59L,0xC6AFAC50L}},{{0xB82785BFL,0x3A1EEB7DL,0x37A55F60L,0x74EF5C55L,1L},{0xBFC9C5FDL,0xAFA0DB85L,0x01918236L,0xC5C16733L,6L},{0xA6E6C67AL,0xC2A40DF2L,0x49A33E39L,0xF4590FB8L,2L},{5L,(-1L),0x988E7C59L,0x8D120CC5L,0xBE8B8EB4L},{0x391EC0AEL,2L,1L,0xDD669E8DL,0xBECCE365L},{0L,0x22A5E9BBL,0x611F490CL,0x22A5E9BBL,0L},{0x771DB680L,0x39FB57FBL,0x06555FDDL,1L,0xA91EC120L}},{{0xCBC052F4L,7L,0x4981EA6BL,8L,0x22A5E9BBL},{7L,(-5L),1L,0xDD669E8DL,0x391EC0AEL},{(-1L),0xBFC9C5FDL,7L,(-2L),(-2L)},{0x391EC0AEL,0xD2878E20L,0L,(-1L),0x8A9D4E29L},{0xBE8B8EB4L,(-1L),0x8FA5B691L,5L,0x813287D0L},{0x3A5D9CD9L,0xF4590FB8L,5L,0xBECCE365L,0x49A33E39L},{8L,0x5E4C15EDL,0x01918236L,6L,(-2L)}},{{0L,2L,0L,0x3A1EEB7DL,0L},{0x55A7F1D6L,0x55A7F1D6L,0x92564901L,0x8FA5B691L,6L},{0xC68B5FCEL,1L,0x3F37CEA5L,0x00D58DC1L,1L},{4L,0xBE8B8EB4L,0x5E4C15EDL,0x813287D0L,0xCBC052F4L},{0x49A33E39L,1L,0x39FB57FBL,0xD2878E20L,0L},{0x255FA594L,0x55A7F1D6L,0xAFA0DB85L,7L,0xEF1944EAL},{0L,2L,0x3A5D9CD9L,0x771DB680L,0x74EF5C55L}},{{1L,0x5E4C15EDL,0xB4EF417AL,(-1L),7L},{0xB82785BFL,0xF4590FB8L,(-1L),1L,0xBECCE365L},{0x611F490CL,(-1L),8L,0L,(-4L)},{0L,0xD2878E20L,0xD2878E20L,0L,0xC68B5FCEL},{6L,0xBFC9C5FDL,1L,0xE2B63FD9L,8L},{5L,0L,0x37A55F60L,0xA91EC120L,0x3A1EEB7DL},{6L,0xEF1944EAL,0xC7D9DB92L,0xE2B63FD9L,0xC5C16733L}},{{0xEC6C433EL,0xDD669E8DL,0x00D58DC1L,0L,0x771DB680L},{0L,0x5594337BL,0xB04BF500L,0L,0xBFC9C5FDL},{0x076CB71BL,0x49A33E39L,0x771DB680L,1L,(-5L)},{7L,1L,(-2L),(-1L),0xB3B678F5L},{0xD2878E20L,1L,0x8A9D4E29L,0x771DB680L,0L},{0xD1CCF461L,0x01918236L,7L,7L,0x01918236L},{1L,0L,4L,0xD2878E20L,0xDD669E8DL}}};
        int8_t l_301 = 0x15L;
        int16_t l_303 = 0x53ADL;
        int32_t l_311 = 0x687DFAAFL;
        uint32_t l_313 = 18446744073709551615UL;
        uint32_t **l_321 = (void*)0;
        uint32_t *l_323 = &g_246[0];
        uint32_t **l_322 = &l_323;
        uint16_t *l_330 = &l_156;
        uint16_t **l_329 = &l_330;
        uint16_t *l_332 = &g_276;
        uint16_t **l_331[1];
        int64_t *l_334 = (void*)0;
        int64_t *l_335 = &g_242;
        int32_t *l_336 = &l_296;
        int32_t *l_337 = &l_299[4][2][2];
        int32_t *** const *l_390 = &g_199;
        int32_t *** const * const *l_389 = &l_390;
        int16_t l_446 = 0x6FEDL;
        const int32_t ***l_485 = (void*)0;
        int i, j, k;
        for (i = 0; i < 1; i++)
            l_331[i] = &l_332;
        for (p_105 = 4; (p_105 >= 0); p_105 -= 1)
        { /* block id: 73 */
            int i;
            return g_138[p_105];
        }
        for (p_105 = 0; (p_105 <= 13); ++p_105)
        { /* block id: 78 */
            --l_156;
        }
        for (g_123 = (-22); (g_123 != 18); g_123 = safe_add_func_int32_t_s_s(g_123, 8))
        { /* block id: 83 */
            int32_t *l_161 = &g_32[2][0][1];
            int32_t *l_163 = &l_162[0];
            int32_t *l_165[6] = {&l_164,&g_32[2][0][1],&g_32[2][0][1],&l_164,&g_32[2][0][1],&g_32[2][0][1]};
            uint16_t l_197 = 0x47FEL;
            int32_t ***l_277 = &g_71;
            int32_t l_300 = 0xD1F08F67L;
            uint64_t l_308 = 7UL;
            int8_t l_312 = 0x81L;
            int i;
            ++l_166[7][2][2];
            for (l_156 = 26; (l_156 != 34); l_156++)
            { /* block id: 87 */
                uint32_t *l_171 = &g_172;
                int32_t l_202 = 0xFE341C27L;
                int32_t l_210 = 0xBE3DDDF1L;
                int32_t l_280 = (-4L);
                int32_t l_281 = (-6L);
                int32_t l_282 = 0x8503016CL;
                int32_t l_283 = 0x853EBDB8L;
                uint16_t l_284 = 0x4131L;
                int32_t l_287 = 0xF932CA32L;
                int32_t l_288[1];
                int32_t l_294[4][2][3] = {{{0xAFD318C7L,(-1L),0xFF5CEE79L},{0x3A926DFDL,(-1L),(-1L)}},{{0x6AC05EE0L,(-1L),0xC7B7341EL},{0xAFD318C7L,(-1L),0xFF5CEE79L}},{{0x3A926DFDL,(-1L),(-1L)},{0x6AC05EE0L,(-1L),0xC7B7341EL}},{{0xAFD318C7L,(-1L),0xFF5CEE79L},{0x3A926DFDL,(-1L),(-1L)}}};
                uint32_t l_305 = 5UL;
                int i, j, k;
                for (i = 0; i < 1; i++)
                    l_288[i] = 1L;
                if ((((++(*l_171)) , 0x9527F47FDB5AEA7ELL) || (safe_rshift_func_int32_t_s_s((p_106 , ((*l_161) = (safe_mul_func_int16_t_s_s((safe_add_func_uint16_t_u_u((p_107 , (g_138[4] = p_105)), (l_164 &= (~0x726E6707L)))), ((p_107 < (((*l_161) && (((void*)0 == l_182) && g_172)) == p_107)) && g_19))))), 4))))
                { /* block id: 92 */
                    uint16_t l_201 = 0UL;
                    int32_t l_205[1][3][9] = {{{(-4L),(-1L),(-1L),(-4L),(-1L),(-1L),(-4L),(-1L),(-1L)},{0xADC4BAC0L,0x5E1DF802L,0xD0A1748FL,0L,0xD0A1748FL,0x5E1DF802L,0xADC4BAC0L,0x5E1DF802L,0xD0A1748FL},{(-4L),(-1L),(-1L),(-4L),(-1L),(-1L),(-4L),(-1L),(-1L)}}};
                    int i, j, k;
                    for (l_155 = 28; (l_155 <= (-18)); l_155 = safe_sub_func_uint64_t_u_u(l_155, 9))
                    { /* block id: 95 */
                        int32_t *****l_200 = &g_198[1][1];
                        int16_t *l_203 = &g_204;
                        l_205[0][0][5] &= (((&p_105 != (((*l_203) = (+((((safe_div_func_uint8_t_u_u((((safe_lshift_func_uint64_t_u_u(p_106, 26)) != (safe_unary_minus_func_int16_t_s(g_19))) & ((safe_div_func_int64_t_s_s(((safe_add_func_int8_t_s_s(g_32[2][0][1], ((l_201 &= (l_166[5][0][1] ^ ((safe_add_func_int64_t_s_s(g_95, ((((*l_163) = l_197) | (((*l_200) = g_198[1][1]) == &g_120[1])) > g_95))) != 0x5264EAE1FFC6A618LL))) > l_202))) , p_106), p_106)) , l_202)), 0xDBL)) != p_106) > 0UL) > p_105))) , &p_105)) ^ p_106) == 65526UL);
                        if (l_202)
                            break;
                    }
                    for (l_155 = 12; (l_155 <= 10); l_155 = safe_sub_func_int32_t_s_s(l_155, 6))
                    { /* block id: 105 */
                        int32_t l_209[5][4][3] = {{{1L,0x713E002DL,0L},{6L,0xA44838C9L,0L},{2L,0xDF1B775DL,(-1L)},{0xDF1B775DL,0L,2L}},{{(-1L),0xDF1B775DL,(-5L)},{0xF3F1C0D4L,0xA44838C9L,(-6L)},{(-6L),0x713E002DL,0xA44838C9L},{0xE2CB7D20L,6L,0xDF3B5059L}},{{0xE29C1978L,0x8D4017C4L,0xDF3B5059L},{0xA44838C9L,0xCD97BF03L,0xA44838C9L},{1L,1L,(-6L)},{(-1L),7L,(-5L)}},{{0xE056E401L,0xF3F1C0D4L,2L},{1L,0xE29C1978L,(-1L)},{0xE056E401L,0x0F77E53FL,0L},{(-1L),0xFB7AD427L,0L}},{{1L,0xE2CB7D20L,6L},{0xA44838C9L,2L,0x0F77E53FL},{0xE29C1978L,2L,0x8D4017C4L},{0xE2CB7D20L,0xE2CB7D20L,0xE056E401L}}};
                        int i, j, k;
                        ++l_212;
                        if (l_202)
                            break;
                    }
                }
                else
                { /* block id: 109 */
                    int32_t l_244 = 0x469B73E2L;
                    int32_t ****l_261 = &g_199;
                    int32_t **l_274 = &l_163;
                    for (l_211 = 0; (l_211 <= 29); ++l_211)
                    { /* block id: 112 */
                        int16_t *l_232 = &g_204;
                        int64_t *l_241[6] = {&g_242,&g_242,&g_242,&g_242,&g_242,&g_242};
                        int32_t l_248 = (-1L);
                        int i;
                        (*l_163) = (!g_123);
                        (*l_163) = (safe_rshift_func_uint8_t_u_s((((p_105 != ((l_166[7][3][1] ^ (safe_unary_minus_func_uint64_t_u((safe_mul_func_int16_t_s_s((safe_rshift_func_uint16_t_u_s(65535UL, 2)), (safe_lshift_func_int8_t_s_u(((g_247 = (((safe_div_func_uint64_t_u_u((+(safe_rshift_func_int16_t_s_s(((*l_232) = p_107), (g_246[1] = ((safe_rshift_func_int32_t_s_s((0x12171F3EL <= ((l_202 == ((g_243[0][1][0] ^= (safe_div_func_uint32_t_u_u((&g_172 == (void*)0), ((safe_add_func_int8_t_s_s(((g_242 = (safe_add_func_int16_t_s_s(0L, p_107))) || g_123), g_122)) , l_210)))) ^ p_107)) <= l_244)), l_245)) > l_210))))), p_106)) , &p_104) == (void*)0)) < g_32[0][0][1]), 1))))))) || g_138[1])) && 255UL) ^ l_248), l_244));
                        if (p_105)
                            continue;
                    }
                    for (g_172 = 0; (g_172 < 12); g_172 = safe_add_func_uint16_t_u_u(g_172, 4))
                    { /* block id: 124 */
                        int32_t **l_263 = &l_165[5];
                        int32_t ***l_262 = &l_263;
                        int32_t **l_264 = &l_163;
                        int32_t l_267 = 0x49921579L;
                        int32_t **l_273 = &l_165[4];
                        int32_t ***l_272[6] = {&g_71,&g_71,&g_71,&g_71,&g_71,&g_71};
                        uint8_t *l_278 = (void*)0;
                        uint8_t *l_279 = &l_166[7][2][2];
                        int i;
                        (**g_17) = (g_32[2][0][1] && (safe_div_func_int32_t_s_s((safe_add_func_int16_t_s_s((safe_add_func_uint64_t_u_u((safe_sub_func_uint8_t_u_u(((*l_279) = (((*l_163) = 1L) , (safe_div_func_int8_t_s_s((l_261 == (((((0x8EL >= ((l_264 = ((*l_262) = (*g_199))) == ((safe_lshift_func_int16_t_s_u(l_267, (g_243[0][5][1] && (safe_mul_func_uint8_t_u_u((l_270 == (l_275 = (l_274 = (l_271 = &p_104)))), 0L))))) , &p_104))) | g_276) , &l_273) == l_277) , &l_277)), p_106)))), g_122)), 18446744073709551615UL)), p_106)), g_95)));
                        if ((**g_17))
                            break;
                    }
                    return l_210;
                }
                l_284++;
                ++l_305;
                ++l_308;
            }
            if ((*g_18))
                break;
            l_313--;
        }
        if (((*l_337) = ((*l_336) &= (p_105 = (safe_rshift_func_int64_t_s_u(((*l_335) = (g_318 || (p_105 , (&l_212 != (l_333 = ((*l_329) = ((((safe_unary_minus_func_int32_t_s(((&l_275 != l_320) | (g_138[1] |= (&p_106 != ((*l_322) = &l_313)))))) < ((safe_mul_func_uint32_t_u_u((safe_lshift_func_int8_t_s_u(1L, 4)), (4294967294UL > g_246[1]))) | g_19)) <= l_328) , &g_138[3]))))))), g_172))))))
        { /* block id: 152 */
            int32_t *l_338 = &l_295;
            int32_t ****l_398 = &g_199;
            for (l_301 = 5; (l_301 >= 1); l_301 -= 1)
            { /* block id: 155 */
                int32_t *l_345[4] = {&l_299[6][4][1],&l_299[6][4][1],&l_299[6][4][1],&l_299[6][4][1]};
                uint16_t **l_348 = &l_332;
                const int32_t **l_392[1][1];
                const int32_t ***l_391 = &l_392[0][0];
                int32_t ***l_393 = &g_71;
                const int32_t l_405 = (-1L);
                int i, j;
                for (i = 0; i < 1; i++)
                {
                    for (j = 0; j < 1; j++)
                        l_392[i][j] = (void*)0;
                }
                for (l_291 = 0; (l_291 <= 3); l_291 += 1)
                { /* block id: 158 */
                    uint8_t *l_339 = &g_243[0][2][2];
                    int i, j;
                    (**l_182) = l_338;
                    for (g_204 = 0; (g_204 <= 2); g_204 += 1)
                    { /* block id: 162 */
                        uint8_t *l_341 = &l_166[1][1][1];
                        uint8_t **l_340 = &l_341;
                        int i;
                        (**g_17) &= (l_339 != ((*l_340) = (void*)0));
                        if (g_138[l_301])
                            break;
                        if (g_138[(g_204 + 1)])
                            break;
                    }
                }
                for (l_296 = 3; (l_296 >= 0); l_296 -= 1)
                { /* block id: 171 */
                    int i, j;
                    for (g_276 = 0; (g_276 <= 0); g_276 += 1)
                    { /* block id: 174 */
                        int i, j, k;
                        (*g_342) = ((*g_71) = (void*)0);
                        (*l_338) = (g_32[(g_276 + 2)][g_276][g_276] = g_138[l_296]);
                    }
                    (*g_17) = (void*)0;
                    return g_138[(l_296 + 2)];
                }
                if (g_138[l_301])
                    continue;
                for (l_289 = 3; (l_289 >= 0); l_289 -= 1)
                { /* block id: 186 */
                    int32_t **l_344 = &g_72;
                    uint16_t ***l_346 = (void*)0;
                    uint16_t ***l_347[8][10] = {{&l_331[0],&l_329,&l_329,&l_329,&l_329,&l_329,&l_329,&l_331[0],&l_329,&l_329},{&l_331[0],&l_329,&l_329,&l_329,&l_331[0],&l_329,&l_329,&l_331[0],&l_329,&l_329},{&l_331[0],&l_331[0],&l_329,&l_331[0],&l_331[0],&l_331[0],&l_329,&l_331[0],&l_331[0],&l_329},{&l_329,&l_331[0],&l_329,&l_329,&l_331[0],&l_329,&l_329,&l_329,&l_331[0],&l_329},{&l_329,&l_331[0],&l_329,&l_329,&l_329,&l_329,&l_329,&l_329,&l_331[0],&l_329},{&l_329,&l_329,&l_331[0],&l_331[0],&l_331[0],&l_329,&l_329,&l_329,&l_329,&l_331[0]},{&l_329,&l_329,&l_329,&l_329,&l_331[0],&l_331[0],&l_331[0],&l_329,&l_329,&l_329},{&l_331[0],&l_329,&l_329,&l_329,&l_329,&l_329,&l_329,&l_331[0],&l_329,&l_329}};
                    uint8_t *l_363 = &g_243[1][1][1];
                    int32_t ***l_394 = (void*)0;
                    int i, j;
                }
            }
        }
        else
        { /* block id: 213 */
            uint8_t *l_421 = &g_243[0][1][0];
            uint8_t **l_422 = &l_421;
            uint32_t *l_423 = &g_247;
            int32_t l_429 = 0x72D80CDCL;
            uint8_t l_433[3];
            uint64_t *l_440 = &g_408[2][4][3];
            int32_t * const **l_444[1][5][9] = {{{(void*)0,&l_270,(void*)0,&l_270,&l_270,(void*)0,(void*)0,(void*)0,&l_270},{&l_270,&l_270,&l_270,&l_270,&l_270,&l_270,&l_270,&l_270,&l_270},{&l_270,&l_270,&l_270,&l_270,&l_270,&l_270,&l_270,(void*)0,&l_270},{&l_270,&l_270,(void*)0,(void*)0,&l_270,&l_270,&l_270,(void*)0,(void*)0},{&l_270,&l_270,(void*)0,&l_270,(void*)0,&l_270,&l_270,(void*)0,(void*)0}}};
            int16_t *l_464 = &l_446;
            int8_t *l_465 = (void*)0;
            int8_t *l_466 = &l_301;
            int32_t l_471 = 0xB76124D6L;
            uint64_t l_472 = 7UL;
            int8_t *l_481 = &l_301;
            int32_t ***l_484 = &l_271;
            const uint8_t *l_489 = (void*)0;
            const uint8_t **l_488[3];
            int i, j, k;
            for (i = 0; i < 3; i++)
                l_433[i] = 0UL;
            for (i = 0; i < 3; i++)
                l_488[i] = &l_489;
            if ((&g_120[1] != ((((safe_mod_func_int8_t_s_s(((((p_107 , ((safe_sub_func_int8_t_s_s(((safe_rshift_func_uint32_t_u_u(((*l_423) = ((((*l_332) = (safe_mul_func_int64_t_s_s((safe_add_func_uint16_t_u_u((((p_105 <= (-1L)) , &l_166[8][1][1]) != &l_166[7][2][2]), (p_107 ^ (&g_243[0][1][0] != ((*l_422) = l_421))))), 0x5677539D68742BF5LL))) , p_107) | 3L)), p_107)) ^ p_107), 1UL)) || g_246[0])) >= l_424) , (**l_390)) != (void*)0), g_302[0][4][1])) , (*l_337)) , 65533UL) , (void*)0)))
            { /* block id: 217 */
                int32_t *l_430 = &g_32[0][0][1];
                int32_t *l_431 = &g_32[2][0][1];
                int32_t *l_432[2];
                int i;
                for (i = 0; i < 2; i++)
                    l_432[i] = (void*)0;
                l_429 |= (safe_lshift_func_uint8_t_u_s(p_105, (safe_add_func_uint32_t_u_u(1UL, (&g_198[3][3] == (void*)0)))));
                ++l_433[0];
            }
            else
            { /* block id: 220 */
                (***l_390) = (**g_199);
                for (l_295 = 0; (l_295 != 19); ++l_295)
                { /* block id: 224 */
                    return g_138[1];
                }
                if (l_156)
                    goto lbl_463;
            }
            if ((safe_mod_func_int32_t_s_s((((*l_440)--) == (p_107 > ((l_270 = (g_443 = (**l_390))) != (*l_182)))), (g_32[1][0][0] ^ ((safe_unary_minus_func_uint64_t_u(((l_446 != (g_447 == (void*)0)) | (g_2 ^ (--(**l_422)))))) || p_106)))))
            { /* block id: 232 */
                int8_t *l_462 = &l_301;
                (*l_336) = (((*l_462) = (!(~((((~(g_204 ^ 0x2C2DCBE1DDA92765LL)) <= (p_105 | (p_107 <= (safe_div_func_uint64_t_u_u(p_107, (g_122 && g_172)))))) & ((0x8654775D19447537LL == (safe_unary_minus_func_int8_t_s(((--(*l_332)) > ((safe_mul_func_uint32_t_u_u(p_105, (*g_343))) || 0x7A26DC46069806EELL))))) == g_138[1])) != p_105)))) <= (-10L));
            }
            else
            { /* block id: 236 */
lbl_463:
                p_105 = 0xD15F05B9L;
                (**g_17) = (((*l_464) = p_107) , ((((*l_466) ^= p_105) & g_302[3][4][1]) > (((-7L) > (++(*l_332))) , (safe_mod_func_uint32_t_u_u(0xB1EDC22DL, ((*l_336) = 0x2825BAC3L))))));
                ++l_472;
                (*g_18) = ((safe_rshift_func_int32_t_s_s(((safe_mul_func_int64_t_s_s(p_105, (safe_div_func_uint32_t_u_u((l_481 == (void*)0), ((*l_336) = 6L))))) && (((safe_lshift_func_uint16_t_u_s((l_484 == l_485), 7)) <= ((*l_464) = ((((*l_330) = 0x9728L) , (safe_lshift_func_uint64_t_u_u(((*l_440) = ((((p_105 < p_106) <= g_302[1][2][1]) , l_488[0]) != (void*)0)), g_138[3]))) ^ g_406))) || p_105)), (*l_337))) , p_105);
            }
        }
    }
    else
    { /* block id: 252 */
        int16_t *l_499 = &g_95;
        uint32_t * const l_502[6] = {(void*)0,&l_328,&l_328,(void*)0,&l_328,&l_328};
        const int32_t l_507 = (-9L);
        int8_t *l_508[3];
        uint32_t l_510 = 18446744073709551614UL;
        uint64_t *l_511 = &g_408[3][0][4];
        uint32_t l_512 = 0UL;
        int32_t l_514[5] = {0x4F7EFA0EL,0x4F7EFA0EL,0x4F7EFA0EL,0x4F7EFA0EL,0x4F7EFA0EL};
        int i;
        for (i = 0; i < 3; i++)
            l_508[i] = &g_509;
        l_514[1] &= (safe_rshift_func_int64_t_s_u((safe_mod_func_int16_t_s_s(((g_247 = ((((+((safe_rshift_func_int32_t_s_s(((safe_mod_func_uint8_t_u_u((((l_499 == &g_204) > ((g_509 = (((g_204 = g_246[1]) , (safe_mul_func_uint8_t_u_u(g_408[1][2][2], (0xC79AL <= (l_502[5] == ((((((((g_2 <= ((safe_mul_func_uint8_t_u_u(0x61L, (l_510 ^= (((safe_add_func_int16_t_s_s((p_107 && l_507), 0x355BL)) | p_106) , (-1L))))) , l_507)) , l_511) == l_511) <= p_105) & g_408[2][0][1]) & l_507) && l_507) , &g_247)))))) >= 0xCE7E263CCF641E0FLL)) , p_107)) , 1UL), g_19)) <= l_512), l_513)) <= 0x98L)) != l_507) , p_106) ^ l_507)) < 0xDAC3E0B5L), g_246[1])), l_507));
        l_514[0] = l_507;
        return p_107;
    }
    ++l_525;
    for (l_212 = (-1); (l_212 > 27); ++l_212)
    { /* block id: 264 */
        int32_t *l_535[7] = {&g_2,&g_2,&g_2,&g_2,&g_2,&g_2,&g_2};
        int32_t *****l_537 = (void*)0;
        const int32_t l_580[1] = {2L};
        int64_t l_597 = 0x8A76951195C15B6DLL;
        uint64_t *l_606 = &g_408[3][3][3];
        int32_t *l_622 = &g_318;
        uint16_t **l_636 = (void*)0;
        uint16_t ***l_635[1];
        uint32_t *l_639 = (void*)0;
        uint32_t *l_641[6] = {&g_172,&g_172,&g_172,&g_172,&g_172,&g_172};
        int i;
        for (i = 0; i < 1; i++)
            l_635[i] = &l_636;
        for (l_328 = 21; (l_328 != 34); ++l_328)
        { /* block id: 267 */
            uint32_t l_532 = 4294967294UL;
            return l_532;
        }
        for (p_106 = (-20); (p_106 > 29); p_106++)
        { /* block id: 272 */
            int32_t * const ****l_551 = (void*)0;
            uint64_t *l_556 = &g_408[0][1][4];
            int8_t *l_571 = &g_509;
            int8_t **l_570 = &l_571;
            int32_t *l_578 = &l_155;
        }
        (*g_71) = func_108((*g_199), ((g_246[0] = (((g_19 && (*l_522)) & g_406) , (safe_lshift_func_int8_t_s_s(((safe_sub_func_int64_t_s_s((((l_637 = &l_333) != (void*)0) , 8L), (((((*l_516) = (p_107 | (!(((g_19 >= p_106) <= 0x1EE2701EC2C9EC5FLL) , 0x4A4F4086L)))) < (*l_517)) & l_640) != g_138[1]))) , 0x54L), p_107)))) , &p_105), g_318);
        if ((*l_521))
        { /* block id: 331 */
            return g_581;
        }
        else
        { /* block id: 333 */
            uint16_t l_642 = 0x94AAL;
            return l_642;
        }
    }
    return p_106;
}


/* ------------------------------------------ */
/* 
 * reads : g_17 g_18 g_95 g_19 g_32 g_71 g_72 g_2 g_138
 * writes: g_18 g_32 g_120 g_123 g_72 g_138 g_19
 */
static int32_t * func_108(int32_t ** p_109, int32_t * p_110, uint8_t  p_111)
{ /* block id: 29 */
    const int32_t ****l_117 = (void*)0;
    int32_t ***l_119 = &g_71;
    int32_t ****l_118[8] = {&l_119,&l_119,&l_119,&l_119,&l_119,&l_119,&l_119,&l_119};
    const int32_t *l_146 = (void*)0;
    const int32_t **l_145[6][10][4] = {{{&l_146,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{(void*)0,&l_146,&l_146,&l_146},{(void*)0,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{(void*)0,&l_146,&l_146,&l_146},{(void*)0,&l_146,&l_146,&l_146}},{{(void*)0,&l_146,(void*)0,&l_146},{(void*)0,(void*)0,&l_146,&l_146},{&l_146,(void*)0,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,&l_146,(void*)0,&l_146},{&l_146,&l_146,&l_146,(void*)0},{&l_146,&l_146,(void*)0,(void*)0},{&l_146,&l_146,&l_146,&l_146},{(void*)0,&l_146,&l_146,&l_146},{(void*)0,(void*)0,&l_146,&l_146}},{{&l_146,(void*)0,&l_146,&l_146},{(void*)0,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,(void*)0},{&l_146,&l_146,&l_146,(void*)0},{&l_146,&l_146,&l_146,&l_146},{(void*)0,&l_146,&l_146,&l_146},{(void*)0,&l_146,&l_146,&l_146},{&l_146,(void*)0,&l_146,&l_146},{&l_146,(void*)0,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146}},{{(void*)0,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{(void*)0,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{(void*)0,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,(void*)0,&l_146,&l_146}},{{&l_146,&l_146,&l_146,(void*)0},{&l_146,(void*)0,&l_146,&l_146},{&l_146,&l_146,(void*)0,&l_146},{&l_146,&l_146,&l_146,&l_146},{(void*)0,&l_146,(void*)0,&l_146},{&l_146,(void*)0,&l_146,&l_146},{(void*)0,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,&l_146,(void*)0,&l_146}},{{&l_146,(void*)0,(void*)0,&l_146},{&l_146,(void*)0,&l_146,&l_146},{&l_146,&l_146,(void*)0,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,&l_146,&l_146,&l_146},{(void*)0,&l_146,&l_146,(void*)0},{&l_146,(void*)0,(void*)0,&l_146},{&l_146,&l_146,&l_146,&l_146},{&l_146,(void*)0,&l_146,(void*)0},{&l_146,&l_146,&l_146,&l_146}}};
    const int32_t ***l_144 = &l_145[3][7][1];
    int32_t *l_150 = &g_32[1][0][1];
    int i, j, k;
    (*g_17) = (*g_17);
    for (p_111 = (-23); (p_111 > 23); p_111 = safe_add_func_uint16_t_u_u(p_111, 1))
    { /* block id: 33 */
        g_32[2][0][1] ^= (g_95 , (**g_17));
    }
    g_120[1] = (void*)0;
    for (p_111 = 0; (p_111 <= 7); p_111 += 1)
    { /* block id: 39 */
        int16_t l_126[9][5][5] = {{{0x205AL,4L,0x205AL,0xED9FL,0xEC49L},{0L,0x3238L,7L,(-1L),0xC2F6L},{(-1L),(-1L),0xD25DL,(-1L),(-1L)},{0xE5D2L,(-4L),7L,0xC2F6L,0x7B25L},{0x24A5L,0xC9F5L,0x205AL,0x48D5L,1L}},{{0xDCCFL,0xE5D2L,0x25A3L,0L,4L},{(-10L),(-1L),0x8351L,0xEE64L,0x64ADL},{0xE5D2L,(-3L),0xF074L,0x9E7CL,1L},{0xEC49L,0x4FBDL,5L,0xEE64L,0x633EL},{0L,0x3F77L,0x7A29L,0L,0xE5D2L}},{{(-6L),0x48D5L,(-3L),0x48D5L,(-6L)},{0x070FL,(-1L),0xDF16L,0xC2F6L,0x9E7CL},{0L,0x4FBDL,0xB665L,(-1L),0x8910L},{0xC2F6L,(-2L),(-1L),(-1L),0x9E7CL},{1L,(-1L),(-1L),0xED9FL,(-6L)}},{{0x9E7CL,0x25A3L,0xC216L,0x3238L,0xE5D2L},{0xB665L,0xC9F5L,0xEC49L,1L,0x633EL},{(-2L),0x007BL,(-1L),0x7A29L,1L},{0xB78EL,(-1L),(-1L),(-1L),0x64ADL},{(-2L),0xC216L,0xDF16L,0x070FL,(-2L)}},{{(-2L),0xEE64L,0xE8C7L,0x48D5L,0xE8C7L},{4L,4L,(-3L),(-1L),1L},{(-6L),0xC9F5L,(-10L),0x4FBDL,0xB78EL},{0x3238L,(-3L),0x493DL,(-2L),0x3238L},{9L,0xC9F5L,1L,(-1L),5L}},{{0x3F77L,4L,0L,0x25A3L,0xE5D2L},{0xD25DL,0xEE64L,0xD25DL,0xC9F5L,0x64ADL},{0xC2F6L,0x25A3L,0x7A29L,0x007BL,0x3238L},{5L,(-1L),0xB665L,(-1L),(-2L)},{0xDCCFL,0x7B25L,0x7A29L,0xC216L,1L}},{{9L,8L,0xD25DL,4L,1L},{0x9E7CL,0L,0L,0x9E7CL,(-2L)},{0L,(-1L),1L,0xED9FL,0x24A5L},{0xDCCFL,0x070FL,0x493DL,0x7A29L,0L},{0x64ADL,0x48D5L,(-10L),0xED9FL,(-3L)}},{{0xC2F6L,(-4L),(-3L),0x9E7CL,0xDCCFL},{0x8910L,4L,0xE8C7L,4L,0x8910L},{0x3F77L,0x007BL,0xF074L,0xC216L,4L},{0L,0x48D5L,0xB78EL,(-1L),(-1L)},{0x3238L,0L,0xC216L,0x007BL,4L}},{{0x205AL,(-1L),5L,0xC9F5L,0x8910L},{4L,0xDCCFL,0x25A3L,0x25A3L,0xDCCFL},{0xB78EL,8L,0x64ADL,(-1L),(-3L)},{0x070FL,0xDF16L,0xC216L,(-2L),0L},{0xEC49L,(-1L),(-2L),0x4FBDL,0x24A5L}}};
        int32_t l_148 = 0x114B6D74L;
        int i, j, k;
        for (g_123 = 7; (g_123 >= 0); g_123 -= 1)
        { /* block id: 42 */
            int8_t l_124 = 0x59L;
            int32_t l_125 = (-8L);
            p_110 = ((*g_71) = (void*)0);
            if ((l_126[6][0][3] = (l_125 = l_124)))
            { /* block id: 47 */
                return (*g_71);
            }
            else
            { /* block id: 49 */
                int i;
                if ((*g_18))
                    break;
            }
        }
        for (g_123 = 7; (g_123 >= 0); g_123 -= 1)
        { /* block id: 55 */
            int32_t ***l_136 = &g_71;
            const int32_t *l_143 = &g_123;
            const int32_t **l_142 = &l_143;
            const int32_t ***l_141 = &l_142;
            int32_t l_147 = 1L;
            if ((safe_lshift_func_uint16_t_u_u(g_2, 6)))
            { /* block id: 56 */
                int64_t l_135[7];
                uint16_t *l_137 = &g_138[1];
                int i;
                for (i = 0; i < 7; i++)
                    l_135[i] = 0x2AD69AD41C8C0BE4LL;
                p_110 = (((safe_mod_func_uint16_t_u_u(g_32[2][0][1], ((((safe_div_func_int32_t_s_s((safe_mod_func_uint32_t_u_u(((l_147 &= ((l_135[6] , ((*l_137) ^= ((p_111 , l_136) != (void*)0))) != (safe_mod_func_uint32_t_u_u((&g_121 == (l_144 = l_141)), 0xABD8E680L)))) == l_148), p_111)), 0xB34B949FL)) , &p_110) != (void*)0) & g_32[2][0][1]))) && g_32[2][0][1]) , (void*)0);
            }
            else
            { /* block id: 61 */
                uint32_t l_149 = 0x75CAF8C3L;
                (*g_18) |= l_149;
            }
            if (l_126[3][4][3])
                continue;
            if ((**g_17))
                break;
        }
    }
    return l_150;
}




/* ---------------------------------------- */
int main (int argc, char* argv[])
{
    int i, j, k;
    int print_hash_value = 0;
    if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
    platform_main_begin();
    crc32_gentab();
    func_1();
    transparent_crc(g_2, "g_2", print_hash_value);
    transparent_crc(g_19, "g_19", print_hash_value);
    for (i = 0; i < 3; i++)
    {
        for (j = 0; j < 1; j++)
        {
            for (k = 0; k < 2; k++)
            {
                transparent_crc(g_32[i][j][k], "g_32[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_95, "g_95", print_hash_value);
    transparent_crc(g_122, "g_122", print_hash_value);
    transparent_crc(g_123, "g_123", print_hash_value);
    for (i = 0; i < 6; i++)
    {
        transparent_crc(g_138[i], "g_138[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_172, "g_172", print_hash_value);
    transparent_crc(g_204, "g_204", print_hash_value);
    transparent_crc(g_242, "g_242", print_hash_value);
    for (i = 0; i < 2; i++)
    {
        for (j = 0; j < 7; j++)
        {
            for (k = 0; k < 3; k++)
            {
                transparent_crc(g_243[i][j][k], "g_243[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    for (i = 0; i < 2; i++)
    {
        transparent_crc(g_246[i], "g_246[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_247, "g_247", print_hash_value);
    transparent_crc(g_276, "g_276", print_hash_value);
    for (i = 0; i < 4; i++)
    {
        for (j = 0; j < 5; j++)
        {
            for (k = 0; k < 2; k++)
            {
                transparent_crc(g_302[i][j][k], "g_302[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_318, "g_318", print_hash_value);
    transparent_crc(g_406, "g_406", print_hash_value);
    for (i = 0; i < 5; i++)
    {
        for (j = 0; j < 6; j++)
        {
            for (k = 0; k < 8; k++)
            {
                transparent_crc(g_408[i][j][k], "g_408[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_509, "g_509", print_hash_value);
    transparent_crc(g_579, "g_579", print_hash_value);
    transparent_crc(g_581, "g_581", print_hash_value);
    transparent_crc(g_723, "g_723", print_hash_value);
    transparent_crc(g_791, "g_791", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        for (j = 0; j < 10; j++)
        {
            transparent_crc(g_793[i][j], "g_793[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_796, "g_796", print_hash_value);
    transparent_crc(g_861, "g_861", print_hash_value);
    transparent_crc(g_922, "g_922", print_hash_value);
    transparent_crc(g_954, "g_954", print_hash_value);
    transparent_crc(g_960, "g_960", print_hash_value);
    for (i = 0; i < 6; i++)
    {
        transparent_crc(g_1085[i], "g_1085[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_1301, "g_1301", print_hash_value);
    transparent_crc(g_1336, "g_1336", print_hash_value);
    transparent_crc(g_1355, "g_1355", print_hash_value);
    for (i = 0; i < 7; i++)
    {
        transparent_crc(g_1372[i], "g_1372[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_1373, "g_1373", print_hash_value);
    transparent_crc(g_1448, "g_1448", print_hash_value);
    transparent_crc(g_1512, "g_1512", print_hash_value);
    transparent_crc(g_1603, "g_1603", print_hash_value);
    transparent_crc(g_1674, "g_1674", print_hash_value);
    transparent_crc(g_1767, "g_1767", print_hash_value);
    transparent_crc(g_1874, "g_1874", print_hash_value);
    transparent_crc(g_1919, "g_1919", print_hash_value);
    for (i = 0; i < 9; i++)
    {
        transparent_crc(g_1922[i], "g_1922[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_1954, "g_1954", print_hash_value);
    transparent_crc(g_1981, "g_1981", print_hash_value);
    transparent_crc(g_1999, "g_1999", print_hash_value);
    transparent_crc(g_2096, "g_2096", print_hash_value);
    transparent_crc(g_2200, "g_2200", print_hash_value);
    transparent_crc(g_2371, "g_2371", print_hash_value);
    transparent_crc(g_2461, "g_2461", print_hash_value);
    transparent_crc(g_2525, "g_2525", print_hash_value);
    transparent_crc(g_2845, "g_2845", print_hash_value);
    transparent_crc(g_3151, "g_3151", print_hash_value);
    transparent_crc(g_3190, "g_3190", print_hash_value);
    transparent_crc(g_3217, "g_3217", print_hash_value);
    transparent_crc(g_3295, "g_3295", print_hash_value);
    transparent_crc(g_3331, "g_3331", print_hash_value);
    transparent_crc(g_3826, "g_3826", print_hash_value);
    for (i = 0; i < 8; i++)
    {
        for (j = 0; j < 7; j++)
        {
            transparent_crc(g_3891[i][j], "g_3891[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_3901, "g_3901", print_hash_value);
    transparent_crc(g_3911, "g_3911", print_hash_value);
    platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
    return 0;
}

/************************ statistics *************************
XXX max struct depth: 0
breakdown:
   depth: 0, occurrence: 1057
XXX total union variables: 0

XXX non-zero bitfields defined in structs: 0
XXX zero bitfields defined in structs: 0
XXX const bitfields defined in structs: 0
XXX volatile bitfields defined in structs: 0
XXX structs with bitfields in the program: 0
breakdown:
XXX full-bitfields structs in the program: 0
breakdown:
XXX times a bitfields struct's address is taken: 0
XXX times a bitfields struct on LHS: 0
XXX times a bitfields struct on RHS: 0
XXX times a single bitfield on LHS: 0
XXX times a single bitfield on RHS: 0

XXX max expression depth: 53
breakdown:
   depth: 1, occurrence: 124
   depth: 2, occurrence: 38
   depth: 3, occurrence: 3
   depth: 4, occurrence: 1
   depth: 5, occurrence: 1
   depth: 6, occurrence: 1
   depth: 11, occurrence: 1
   depth: 15, occurrence: 2
   depth: 17, occurrence: 2
   depth: 18, occurrence: 2
   depth: 19, occurrence: 1
   depth: 21, occurrence: 1
   depth: 22, occurrence: 1
   depth: 23, occurrence: 3
   depth: 24, occurrence: 1
   depth: 26, occurrence: 3
   depth: 27, occurrence: 5
   depth: 32, occurrence: 1
   depth: 38, occurrence: 1
   depth: 53, occurrence: 1

XXX total number of pointers: 798

XXX times a variable address is taken: 1564
XXX times a pointer is dereferenced on RHS: 605
breakdown:
   depth: 1, occurrence: 325
   depth: 2, occurrence: 191
   depth: 3, occurrence: 60
   depth: 4, occurrence: 22
   depth: 5, occurrence: 7
XXX times a pointer is dereferenced on LHS: 607
breakdown:
   depth: 1, occurrence: 442
   depth: 2, occurrence: 127
   depth: 3, occurrence: 26
   depth: 4, occurrence: 11
   depth: 5, occurrence: 1
XXX times a pointer is compared with null: 97
XXX times a pointer is compared with address of another variable: 25
XXX times a pointer is compared with another pointer: 33
XXX times a pointer is qualified to be dereferenced: 16183

XXX max dereference level: 5
breakdown:
   level: 0, occurrence: 0
   level: 1, occurrence: 2164
   level: 2, occurrence: 1078
   level: 3, occurrence: 569
   level: 4, occurrence: 196
   level: 5, occurrence: 339
XXX number of pointers point to pointers: 442
XXX number of pointers point to scalars: 356
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 29.4
XXX average alias set size: 1.4

XXX times a non-volatile is read: 3669
XXX times a non-volatile is write: 1860
XXX times a volatile is read: 290
XXX    times read thru a pointer: 172
XXX times a volatile is write: 97
XXX    times written thru a pointer: 89
XXX times a volatile is available for access: 2.26e+03
XXX percentage of non-volatile access: 93.5

XXX forward jumps: 3
XXX backward jumps: 7

XXX stmts: 134
XXX max block depth: 5
breakdown:
   depth: 0, occurrence: 30
   depth: 1, occurrence: 19
   depth: 2, occurrence: 21
   depth: 3, occurrence: 28
   depth: 4, occurrence: 14
   depth: 5, occurrence: 22

XXX percentage a fresh-made variable is used: 14
XXX percentage an existing variable is used: 86
********************* end of statistics **********************/

